Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(assets): add unit test tool for assets compose
- Loading branch information
Franck DIOMANDE
committed
Dec 4, 2019
1 parent
fdffc02
commit f00d1b8
Showing
4 changed files
with
49 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
presets: ['@babel/preset-env', '@babel/preset-react'], | ||
}; |
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,30 @@ | ||
// https://jestjs.io/docs/en/configuration.html | ||
|
||
module.exports = { | ||
|
||
// Automatically clear mock calls and instances between every test | ||
clearMocks: true, | ||
|
||
// An array of glob patterns indicating a set of files for which coverage information should be collected | ||
collectCoverageFrom: ['**/?(*.)+.js?(x)'], | ||
|
||
// The directory where Jest should output its coverage files | ||
coverageDirectory: 'coverage', | ||
|
||
// An array of file extensions your modules use | ||
moduleFileExtensions: ['js', 'jsx'], | ||
|
||
// The glob patterns Jest uses to detect test files | ||
// testMatch: ['components/*/*.spec.jsx'], | ||
testMatch: ['**/?(*.)+(spec|test).js?(x)'], | ||
|
||
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped | ||
testPathIgnorePatterns: ['<rootDir>/node_modules/'], | ||
|
||
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation | ||
transformIgnorePatterns: ['<rootDir>/node_modules/'], | ||
|
||
// Indicates whether each individual test should be reported during the run | ||
verbose: true, | ||
|
||
}; |
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