Last active
August 21, 2020 23:36
-
-
Save weyert/55e9ee45346381f4e4f547a317a96edf to your computer and use it in GitHub Desktop.
Config for CRA vs plain JEST
This file contains hidden or 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
{ | |
"configs": [ | |
{ | |
"automock": false, | |
"cache": true, | |
"cacheDirectory": "/private/var/folders/qg/y_s5wnyd71nd33zg9z1_76tw0000gn/T/jest_dx", | |
"clearMocks": false, | |
"coveragePathIgnorePatterns": [ | |
"/node_modules/" | |
], | |
"cwd": "/Users/weyert/Downloads/react-scripts-test-upgrade-bug", | |
"detectLeaks": false, | |
"detectOpenHandles": false, | |
"errorOnDeprecated": false, | |
"extraGlobals": [], | |
"forceCoverageMatch": [], | |
"globals": {}, | |
"haste": { | |
"computeSha1": false, | |
"throwOnModuleCollision": false | |
}, | |
"moduleDirectories": [ | |
"node_modules" | |
], | |
"moduleFileExtensions": [ | |
"web.js", | |
"js", | |
"web.ts", | |
"ts", | |
"web.tsx", | |
"tsx", | |
"json", | |
"web.jsx", | |
"jsx", | |
"node" | |
], | |
"moduleNameMapper": [ | |
[ | |
"^react-native$", | |
"react-native-web" | |
], | |
[ | |
"^.+\\.module\\.(css|sass|scss)$", | |
"identity-obj-proxy" | |
] | |
], | |
"modulePathIgnorePatterns": [], | |
"modulePaths": [], | |
"name": "12fce1a0b140e7c370dd28f9b900eaf8", | |
"prettierPath": "prettier", | |
"resetMocks": true, | |
"resetModules": false, | |
"restoreMocks": false, | |
"rootDir": "/Users/weyert/Downloads/react-scripts-test-upgrade-bug", | |
"roots": [ | |
"/Users/weyert/Downloads/react-scripts-test-upgrade-bug/src" | |
], | |
"runner": "jest-runner", | |
"setupFiles": [ | |
"/Users/weyert/Downloads/react-scripts-test-upgrade-bug/node_modules/react-app-polyfill/jsdom.js" | |
], | |
"setupFilesAfterEnv": [], | |
"skipFilter": false, | |
"slowTestThreshold": 5, | |
"snapshotSerializers": [], | |
"testEnvironment": "/Users/weyert/Downloads/react-scripts-test-upgrade-bug/node_modules/jest-environment-jsdom/build/index.js", | |
"testEnvironmentOptions": {}, | |
"testLocationInResults": false, | |
"testMatch": [ | |
"/Users/weyert/Downloads/react-scripts-test-upgrade-bug/src/**/__tests__/**/*.{js,jsx,ts,tsx}", | |
"/Users/weyert/Downloads/react-scripts-test-upgrade-bug/src/**/*.{spec,test}.{js,jsx,ts,tsx}" | |
], | |
"testPathIgnorePatterns": [ | |
"/node_modules/" | |
], | |
"testRegex": [], | |
"testRunner": "/Users/weyert/Downloads/react-scripts-test-upgrade-bug/node_modules/jest-circus/runner.js", | |
"testURL": "http://localhost", | |
"timers": "real", | |
"transform": [ | |
[ | |
"^.+\\.(js|jsx|mjs|cjs|ts|tsx)$", | |
"/Users/weyert/Downloads/react-scripts-test-upgrade-bug/node_modules/react-scripts/config/jest/babelTransform.js", | |
{} | |
], | |
[ | |
"^.+\\.css$", | |
"/Users/weyert/Downloads/react-scripts-test-upgrade-bug/node_modules/react-scripts/config/jest/cssTransform.js", | |
{} | |
], | |
[ | |
"^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)", | |
"/Users/weyert/Downloads/react-scripts-test-upgrade-bug/node_modules/react-scripts/config/jest/fileTransform.js", | |
{} | |
] | |
], | |
"transformIgnorePatterns": [ | |
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$", | |
"^.+\\.module\\.(css|sass|scss)$" | |
], | |
"watchPathIgnorePatterns": [] | |
} | |
], | |
"globalConfig": { | |
"bail": 0, | |
"changedFilesWithAncestor": false, | |
"collectCoverage": false, | |
"collectCoverageFrom": [ | |
"src/**/*.{js,jsx,ts,tsx}", | |
"!src/**/*.d.ts" | |
], | |
"coverageDirectory": "/Users/weyert/Downloads/react-scripts-test-upgrade-bug/coverage", | |
"coverageProvider": "babel", | |
"coverageReporters": [ | |
"json", | |
"text", | |
"lcov", | |
"clover" | |
], | |
"detectLeaks": false, | |
"detectOpenHandles": false, | |
"errorOnDeprecated": false, | |
"expand": false, | |
"findRelatedTests": false, | |
"forceExit": false, | |
"json": false, | |
"lastCommit": false, | |
"listTests": false, | |
"logHeapUsage": false, | |
"maxConcurrency": 5, | |
"maxWorkers": 6, | |
"noStackTrace": false, | |
"nonFlagArgs": [], | |
"notify": false, | |
"notifyMode": "failure-change", | |
"onlyChanged": false, | |
"onlyFailures": false, | |
"passWithNoTests": false, | |
"projects": [], | |
"rootDir": "/Users/weyert/Downloads/react-scripts-test-upgrade-bug", | |
"runTestsByPath": false, | |
"skipFilter": false, | |
"testFailureExitCode": 1, | |
"testPathPattern": "", | |
"testSequencer": "/Users/weyert/Downloads/react-scripts-test-upgrade-bug/node_modules/@jest/test-sequencer/build/index.js", | |
"updateSnapshot": "new", | |
"useStderr": false, | |
"watch": true, | |
"watchAll": false, | |
"watchPlugins": [ | |
{ | |
"config": {}, | |
"path": "/Users/weyert/Downloads/react-scripts-test-upgrade-bug/node_modules/jest-watch-typeahead/filename.js" | |
}, | |
{ | |
"config": {}, | |
"path": "/Users/weyert/Downloads/react-scripts-test-upgrade-bug/node_modules/jest-watch-typeahead/testname.js" | |
} | |
], | |
"watchman": true | |
}, | |
"version": "26.4.1" | |
} | |
This file contains hidden or 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
{ | |
"configs": [ | |
{ | |
"automock": false, | |
"cache": true, | |
"cacheDirectory": "/private/var/folders/qg/y_s5wnyd71nd33zg9z1_76tw0000gn/T/jest_dx", | |
"clearMocks": false, | |
"coveragePathIgnorePatterns": [ | |
"/node_modules/" | |
], | |
"cwd": "/Users/weyert/Downloads/react-scripts-test-upgrade-bug", | |
"detectLeaks": false, | |
"detectOpenHandles": false, | |
"errorOnDeprecated": false, | |
"extraGlobals": [], | |
"forceCoverageMatch": [], | |
"globals": {}, | |
"haste": { | |
"computeSha1": false, | |
"throwOnModuleCollision": false | |
}, | |
"moduleDirectories": [ | |
"node_modules" | |
], | |
"moduleFileExtensions": [ | |
"js", | |
"json", | |
"jsx", | |
"ts", | |
"tsx", | |
"node" | |
], | |
"moduleNameMapper": [], | |
"modulePathIgnorePatterns": [], | |
"name": "c8554ff6a5d4739d7c1a10c950b2e2c2", | |
"prettierPath": "prettier", | |
"resetMocks": false, | |
"resetModules": false, | |
"restoreMocks": false, | |
"rootDir": "/Users/weyert/Downloads/react-scripts-test-upgrade-bug", | |
"roots": [ | |
"/Users/weyert/Downloads/react-scripts-test-upgrade-bug" | |
], | |
"runner": "jest-runner", | |
"setupFiles": [], | |
"setupFilesAfterEnv": [], | |
"skipFilter": false, | |
"slowTestThreshold": 5, | |
"snapshotSerializers": [], | |
"testEnvironment": "/Users/weyert/Downloads/react-scripts-test-upgrade-bug/node_modules/jest-environment-jsdom/build/index.js", | |
"testEnvironmentOptions": {}, | |
"testLocationInResults": false, | |
"testMatch": [ | |
"**/__tests__/**/*.[jt]s?(x)", | |
"**/?(*.)+(spec|test).[tj]s?(x)" | |
], | |
"testPathIgnorePatterns": [ | |
"/node_modules/" | |
], | |
"testRegex": [], | |
"testRunner": "/Users/weyert/Downloads/react-scripts-test-upgrade-bug/node_modules/jest-jasmine2/build/index.js", | |
"testURL": "http://localhost", | |
"timers": "real", | |
"transform": [ | |
[ | |
"^.+\\.[jt]sx?$", | |
"/Users/weyert/Downloads/react-scripts-test-upgrade-bug/node_modules/babel-jest/build/index.js", | |
{} | |
] | |
], | |
"transformIgnorePatterns": [ | |
"/node_modules/", | |
"\\.pnp\\.[^\\/]+$" | |
], | |
"watchPathIgnorePatterns": [] | |
} | |
], | |
"globalConfig": { | |
"bail": 0, | |
"changedFilesWithAncestor": false, | |
"collectCoverage": false, | |
"collectCoverageFrom": [], | |
"coverageDirectory": "/Users/weyert/Downloads/react-scripts-test-upgrade-bug/coverage", | |
"coverageProvider": "babel", | |
"coverageReporters": [ | |
"json", | |
"text", | |
"lcov", | |
"clover" | |
], | |
"detectLeaks": false, | |
"detectOpenHandles": false, | |
"errorOnDeprecated": false, | |
"expand": false, | |
"findRelatedTests": false, | |
"forceExit": false, | |
"json": false, | |
"lastCommit": false, | |
"listTests": false, | |
"logHeapUsage": false, | |
"maxConcurrency": 5, | |
"maxWorkers": 11, | |
"noStackTrace": false, | |
"nonFlagArgs": [], | |
"notify": false, | |
"notifyMode": "failure-change", | |
"onlyChanged": false, | |
"onlyFailures": false, | |
"passWithNoTests": false, | |
"projects": [], | |
"rootDir": "/Users/weyert/Downloads/react-scripts-test-upgrade-bug", | |
"runTestsByPath": false, | |
"skipFilter": false, | |
"testFailureExitCode": 1, | |
"testPathPattern": "", | |
"testSequencer": "/Users/weyert/Downloads/react-scripts-test-upgrade-bug/node_modules/@jest/test-sequencer/build/index.js", | |
"updateSnapshot": "new", | |
"useStderr": false, | |
"watch": false, | |
"watchAll": false, | |
"watchman": true | |
}, | |
"version": "26.4.1" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment