node/test/fixtures/es-modules/esm-snapshot-mutator.js

5 lines
162 B
JavaScript

'use strict';
const shouldSnapshotFilePath = require.resolve('./esm-snapshot.js');
require('./esm-snapshot.js');
require.cache[shouldSnapshotFilePath].exports++;