node/test/es-module/esm-snapshot-mutator.js

6 lines
200 B
JavaScript

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