Skip to content

Commit

Permalink
Tests: Support module don't expose createFixtures or `cleanupFixtur…
Browse files Browse the repository at this point in the history
…es` [refactor]
  • Loading branch information
overlookmotel committed Dec 16, 2023
1 parent 21ab628 commit 933fb9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/support/fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const SPAWNED_PATH = pathJoin(__dirname, 'spawned.js'),

// Exports

module.exports = {createFixtures, cleanupFixtures, withFixtures, serializeInNewProcess};
module.exports = {withFixtures, serializeInNewProcess};

let fixtureNum = 0;

Expand Down
4 changes: 1 addition & 3 deletions test/support/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const mapValues = require('lodash/mapValues'),
assert = require('simple-invariant');

// Imports
const {createFixtures, cleanupFixtures, withFixtures, serializeInNewProcess} = require('./fixtures.js'),
const {withFixtures, serializeInNewProcess} = require('./fixtures.js'),
internalSplitPoints = require('../../lib/shared/internal.js').splitPoints;

useGlobalModuleCache();
Expand All @@ -37,8 +37,6 @@ module.exports = { // eslint-disable-line jest/no-export
itSerializesEqual: wrapItSerializes({equal: true}),
stripLineBreaks,
stripSourceMapComment,
createFixtures,
cleanupFixtures,
withFixtures,
serializeInNewProcess,
tryCatch
Expand Down

0 comments on commit 933fb9e

Please sign in to comment.