mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
* Disable Fiber specific test run in CI This disables the comparison against previously recorded test. Instead, we'll rely on jest failures to fail tests. * Extract jest config into two separate projects for Fiber and Stack Allows us to run both in the same jest run. The setupMocks file is forked into specific environment configuration for each project. This replaces the environment variable. I used copy pasta here to make it clear. We can abstract this later. It's clear to me that simply extracting shared stuff is not the best way to abstract this. setupMocks for example didn't need all the code in both branches. I think that some of the stuff that is shared such as error message extracting etc. should probably be lifted out into a stand-alone jest project instead of being shared. * Fix class equivalence test There's a behavior change when projects are used which makes setupTestFrameworkScriptFile not override the normal config. This test should probably just move to a separate CI script or something less hacky. * Only run Fiber tests with scripts/fiber/record-tests
39 lines
836 B
JSON
39 lines
836 B
JSON
{
|
|
"modulePathIgnorePatterns": [
|
|
"/.module-cache/",
|
|
"<rootDir>/build/",
|
|
"<rootDir>/scripts/rollup/shims/",
|
|
"<rootDir>/scripts/bench/"
|
|
],
|
|
"rootDir": "../../",
|
|
"transform": {
|
|
".*": "./scripts/jest/preprocessor.js"
|
|
},
|
|
"setupFiles": [
|
|
"./scripts/jest/stack.setup.js",
|
|
"./scripts/jest/environment.js"
|
|
],
|
|
"setupTestFrameworkScriptFile": "./scripts/jest/test-framework-setup.js",
|
|
"testRegex": "/__tests__/.*(\\.js|coffee|ts)$",
|
|
"moduleFileExtensions": [
|
|
"js",
|
|
"json",
|
|
"node",
|
|
"coffee",
|
|
"ts"
|
|
],
|
|
"roots": [
|
|
"<rootDir>/eslint-rules",
|
|
"<rootDir>/mocks",
|
|
"<rootDir>/scripts",
|
|
"<rootDir>/src",
|
|
"node_modules/fbjs"
|
|
],
|
|
"collectCoverageFrom": [
|
|
"src/**/*.js",
|
|
"!src/__mocks__/vendor/third_party/*.js",
|
|
"!src/test/*.js"
|
|
],
|
|
"timers": "fake"
|
|
}
|