From 933fb9e2e2de9ba5733224da68a45fa81f7d1148 Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Sat, 16 Dec 2023 14:27:43 +0000 Subject: [PATCH] Tests: Support module don't expose `createFixtures` or `cleanupFixtures` [refactor] --- test/support/fixtures.js | 2 +- test/support/index.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/test/support/fixtures.js b/test/support/fixtures.js index 747ef0c3..714d3d16 100644 --- a/test/support/fixtures.js +++ b/test/support/fixtures.js @@ -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; diff --git a/test/support/index.js b/test/support/index.js index c57ac044..0bc640c2 100644 --- a/test/support/index.js +++ b/test/support/index.js @@ -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(); @@ -37,8 +37,6 @@ module.exports = { // eslint-disable-line jest/no-export itSerializesEqual: wrapItSerializes({equal: true}), stripLineBreaks, stripSourceMapComment, - createFixtures, - cleanupFixtures, withFixtures, serializeInNewProcess, tryCatch