Skip to content

Commit

Permalink
Fix race condition in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Nov 30, 2021
1 parent ddae673 commit c385768
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/babel-register/test/cache.js
Expand Up @@ -7,7 +7,7 @@ const require = createRequire(import.meta.url);

const testCacheFilename = path.join(
path.dirname(fileURLToPath(import.meta.url)),
".babel",
".cache.babel",
);
const oldBabelDisableCacheValue = process.env.BABEL_DISABLE_CACHE;

Expand Down
2 changes: 1 addition & 1 deletion packages/babel-register/test/index.js
Expand Up @@ -8,7 +8,7 @@ const dirname = path.dirname(fileURLToPath(import.meta.url));
const require = createRequire(import.meta.url);

const registerFile = require.resolve("../lib/index");
const testCacheFilename = path.join(dirname, ".babel");
const testCacheFilename = path.join(dirname, ".index.babel");
const testFile = require.resolve("./fixtures/babelrc/es2015");
const testFileContent = fs.readFileSync(testFile);

Expand Down

0 comments on commit c385768

Please sign in to comment.