Get all platform unit tests to run
This commit is contained in:
1 parent
5544c57c37
commit
b8baae7c25
14 files changed
+114
-137
No files matched your search
@@ -0,0 +1,30 @@
|
||||
const path = require("path");
|
||||
|
||||
module.exports = {
|
||||
verbose: true,
|
||||
roots: ["<rootDir>/src"],
|
||||
transform: {
|
||||
"^.+\\.js$": "babel-jest"
|
||||
},
|
||||
testMatch: ["<rootDir>/src/**/*.test.js"],
|
||||
testPathIgnorePatterns: ["<rootDir>/node_modules/"],
|
||||
moduleFileExtensions: ["js", "jsx"],
|
||||
moduleNameMapper: {
|
||||
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
|
||||
"<rootDir>/src/__mocks__/fileMock.js",
|
||||
"\\.(css|less)$": "identity-obj-proxy"
|
||||
},
|
||||
// Setup
|
||||
// setupFiles: ["jest-canvas-mock/lib/index.js"],
|
||||
// Coverage
|
||||
reporters: ["default", "jest-junit"],
|
||||
collectCoverage: false,
|
||||
collectCoverageFrom: [
|
||||
"<rootDir>/src/**/*.{js,jsx}",
|
||||
// Not
|
||||
"!<rootDir>/src/**/*.test.js",
|
||||
"!**/node_modules/**",
|
||||
"!**/__tests__/**",
|
||||
"!<rootDir>/dist/**"
|
||||
]
|
||||
};
|
||||
Reference in new issue
Block a user