Skip to content

Commit

Permalink
build(jest): disable jest test caching
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Sep 1, 2020
1 parent 2699e40 commit 92a1978
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
},
"args": [
"-i",
"--no-cache",
"-c", "jestconfigs/jest.src.config.js",
// "-c", "jestconfigs/jest.es5.umd.config.js",
"spec/iterable/",
Expand Down
4 changes: 2 additions & 2 deletions gulp/test-task.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ const testTask = ((cache, execArgv, testOptions) => memoizeTask(cache, function
const args = [...execArgv];
const opts = { ...testOptions };
if (argv.coverage) {
args.push(`-c`, `jest.coverage.config.js`, `--coverage`);
args.push(`-c`, `jest.coverage.config.js`, `--coverage`, `--no-cache`);
} else {
const cfgname = [target, format].filter(Boolean).join('.');
args.push(`-c`, `jestconfigs/jest.${cfgname}.config.js`, `-i`, `spec/*`);
args.push(`-c`, `jestconfigs/jest.${cfgname}.config.js`, `-i`, `--no-cache`, `spec/*`);
}
opts.env = { ...opts.env,
TEST_TARGET: target,
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ module.exports = {
"^.+\\.tsx?$": "ts-jest"
},
"transformIgnorePatterns": [
"/(es2015|esnext)/umd/",
"/(es5|es2015|esnext)/umd/",
"/node_modules/(?!web-stream-tools).+\\.js$"
],
"testRegex": "(.*(-|\\.)(test|spec)s?)\\.(ts|tsx|js)$",
Expand Down

0 comments on commit 92a1978

Please sign in to comment.