Get all platform unit tests to run

This commit is contained in:
dannyrb committed 2019-07-17 14:57:50 -04:00
1 parent 5544c57c37
commit b8baae7c25
14 files changed
+114 -137

No files matched your search

+11 -23
View File
@@ -1,26 +1,14 @@
const path = require("path");
const base = require("../../jest.config.base.js");
const pkg = require("./package");
module.exports = {
verbose: true,
testMatch: ["<rootDir>/src/**/*.test.js"],
//
collectCoverage: false,
collectCoverageFrom: [
"<rootDir>/src/**/*.{js,jsx}",
"!<rootDir>/src/**/*.test.js",
"!**/node_modules/**",
"!**/__tests__/**"
],
reporters: ["default", "jest-junit"],
//
transform: {
"^.+\\.js$": path.resolve(__dirname, "./jestBabelTransform.js")
},
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"
},
setupFiles: ["<rootDir>../../node_modules/jest-canvas-mock/lib/index.js"],
setupTestFrameworkScriptFile: "<rootDir>/src/__tests__/globalSetup.js"
...base,
name: pkg.name,
displayName: pkg.name,
setupFilesAfterEnv: ["<rootDir>/src/__tests__/globalSetup.js"]
// rootDir: "../.."
// testMatch: [
// //`<rootDir>/platform/${pack.name}/**/*.spec.js`
// "<rootDir>/platform/viewer/**/*.test.js"
// ]
};