Do you want to request a feature or report a bug?
bug
What is the current behavior?
When running tests in parallel with the new atomic cache writing, we're getting rename errors as multiple processes try to write to the same files. Even with --no-cache option set it's still hitting rename errors because it's still trying to write to the files.
What is the expected behavior?
- I think that
--no-cache should not write cache files
- Caching across multiple processes should not collide, or should be able to restart the test.
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
{
"clearMocks": true,
"collectCoverageFrom": [
"packages/**/src/**/*.{ts,tsx}",
"!packages/sf-lint/**",
"!**/*.d.ts"
],
"coverageReporters": [
"text-summary"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"json"
],
"setupTestFrameworkScriptFile": "<rootDir>/jestEnvironment.js",
"transform": {
"\\.(ts|tsx)$": "<rootDir>/scripts/preprocessTypescript.js",
"\\.(less|css|svg|gif|png|jpg|jpeg)$": "<rootDir>/scripts/preprocessText.js"
},
"testRegex": "(Spec|.spec).tsx?$"
}
jest 21.0.1
node 6.9.2
yarn 0.27.x/1.0.0
OS Windows
Do you want to request a feature or report a bug?
bug
What is the current behavior?
When running tests in parallel with the new atomic cache writing, we're getting rename errors as multiple processes try to write to the same files. Even with
--no-cacheoption set it's still hitting rename errors because it's still trying to write to the files.What is the expected behavior?
--no-cacheshould not write cache filesPlease provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
{ "clearMocks": true, "collectCoverageFrom": [ "packages/**/src/**/*.{ts,tsx}", "!packages/sf-lint/**", "!**/*.d.ts" ], "coverageReporters": [ "text-summary" ], "moduleFileExtensions": [ "ts", "tsx", "js", "json" ], "setupTestFrameworkScriptFile": "<rootDir>/jestEnvironment.js", "transform": { "\\.(ts|tsx)$": "<rootDir>/scripts/preprocessTypescript.js", "\\.(less|css|svg|gif|png|jpg|jpeg)$": "<rootDir>/scripts/preprocessText.js" }, "testRegex": "(Spec|.spec).tsx?$" }jest 21.0.1
node 6.9.2
yarn 0.27.x/1.0.0
OS Windows