Skip to content

Commit

Permalink
Tests disable register cache
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Dec 29, 2022
1 parent f85f599 commit 45ba914
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/support/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
'use strict';

// Patch filesystem for virtual fixtures files
const {FIXTURES_DIR_PATH} = require('./fixturesFs.js');
require('./fixturesFs.js');

// Install register require hook.
// Don't cache instrumented fixture files. There's way too many of them.
require('../../register.js')({skipCacheForDir: FIXTURES_DIR_PATH});
// Disable instrumentation cache. Tests run in multiple threads, so it'd be read from and written to
// concurrently unless disabled.
require('../../register.js')({cache: false});

// Use internal module cache to avoid transpiling modules
const {
Expand Down

0 comments on commit 45ba914

Please sign in to comment.