8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6716e46 commit f41ea90Copy full SHA for f41ea90
heft-plugins/heft-jest-plugin/includes/jestScriptTransformerPatch.js
@@ -13,8 +13,14 @@ const fs = require('fs');
13
// reading and writing of cache files.
14
15
const patchName = path.basename(__filename);
16
+const HEFT_JEST_DISABLE_CACHE_ENV_VARIABLE = 'HEFT_JEST_DISABLE_CACHE';
17
18
function applyPatch() {
19
+ // Only apply the patch if the environment variable is set
20
+ if (!process.env[HEFT_JEST_DISABLE_CACHE_ENV_VARIABLE]) {
21
+ return;
22
+ }
23
+
24
try {
25
let contextFolder = __dirname;
26
// Resolve the "@jest/core" package relative to heft-jest-plugin
0 commit comments