2017-07-16 14:49:37 +03:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
const ENABLE_COVERAGE = !!process.env.CI;
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
setupFiles: ["<rootDir>/tests_config/run_spec.js"],
|
|
|
|
snapshotSerializers: ["<rootDir>/tests_config/raw-serializer.js"],
|
|
|
|
testRegex: "jsfmt\\.spec\\.js$|__tests__/.*\\.js$",
|
|
|
|
testPathIgnorePatterns: ["tests/new_react", "tests/more_react"],
|
|
|
|
collectCoverage: ENABLE_COVERAGE,
|
2017-07-17 14:32:33 +03:00
|
|
|
collectCoverageFrom: ["src/**/*.js", "index.js", "!<rootDir>/node_modules/"],
|
2017-07-16 14:49:37 +03:00
|
|
|
coveragePathIgnorePatterns: [
|
|
|
|
"<rootDir>/src/doc-debug.js",
|
|
|
|
"<rootDir>/src/clean-ast.js",
|
|
|
|
"<rootDir>/src/deprecated.js"
|
2017-10-02 18:58:55 +03:00
|
|
|
],
|
|
|
|
transform: {}
|
2017-07-16 14:49:37 +03:00
|
|
|
};
|