-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from MSA-Safety/feat/jest-eslint
Feat/jest eslint
- Loading branch information
Showing
12 changed files
with
284 additions
and
329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules | ||
build | ||
build | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
// Use this configuration option to add reporters to Jest | ||
reporters: [ | ||
'default', | ||
[ | ||
'<rootDir>/..', // refers to jest-flaky-retry | ||
{ | ||
configFile: 'jest.flakyRetry.json', | ||
junitOutputDirectory: 'build/results/unit', | ||
}, | ||
], | ||
], | ||
// The glob patterns Jest uses to detect test files | ||
testMatch: ['**/?(*.)+(unit.test).js?(x)'], | ||
}; |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
'use strict'; | ||
|
||
// For a detailed explanation regarding each configuration property, visit: | ||
// https://jestjs.io/docs/en/configuration.html | ||
|
||
module.exports = { | ||
// Run tests from one or more projects | ||
projects: [ | ||
{ | ||
// Allows for a label to be printed alongside a test while it is running | ||
displayName: 'test', | ||
// The pattern or patterns Jest uses to detect test files | ||
testRegex: ['.*unit\\.test\\.js$'], | ||
// An array of regexp pattern strings that are matched against all test paths, | ||
// matched tests are skipped | ||
testPathIgnorePatterns: [ | ||
'/node_modules/', | ||
'/demo/', | ||
], | ||
}, | ||
{ | ||
// Allows for a label to be printed alongside a test while it is running | ||
displayName: 'lint', | ||
// This option allows you to use a custom runner instead of Jest's default test runner | ||
runner: 'jest-runner-eslint', | ||
// The pattern or patterns Jest uses to detect test files | ||
testRegex: ['.*\\.js$'], | ||
// An array of regexp pattern strings that are matched against all test paths, | ||
// matched tests are skipped | ||
testPathIgnorePatterns: [ | ||
'/node_modules/', | ||
'/build/', | ||
], | ||
}, | ||
], | ||
// Indicates whether the coverage information should be collected while executing the test | ||
collectCoverage: true, | ||
// The directory where Jest should output its coverage files | ||
coverageDirectory: 'build/coverage/unit', | ||
// An array of regexp pattern strings used to skip coverage collection | ||
coveragePathIgnorePatterns: ['node_modules'], | ||
// An object that configures minimum threshold enforcement for coverage results | ||
coverageThreshold: { | ||
global: { | ||
branches: 100, | ||
functions: 100, | ||
lines: 100, | ||
statements: 100, | ||
}, | ||
}, | ||
// Automatically clear mock calls and instances between every test | ||
clearMocks: true, | ||
// Use this configuration option to add custom reporters to Jest | ||
reporters: [ | ||
'default', | ||
['jest-junit', { outputDirectory: 'build/results/unit' }], | ||
], | ||
}; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.