diff options
Diffstat (limited to 'packages/upgrade/test/utils.js')
-rw-r--r-- | packages/upgrade/test/utils.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/packages/upgrade/test/utils.js b/packages/upgrade/test/utils.js index d57ceacd3..ff5d5dd83 100644 --- a/packages/upgrade/test/utils.js +++ b/packages/upgrade/test/utils.js @@ -1,4 +1,3 @@ -import fs from 'node:fs'; import { setStdout } from '../dist/index.js'; import stripAnsi from 'strip-ansi'; @@ -30,23 +29,3 @@ export function setup() { }, }; } - -const resetBasicFixture = async () => { - const packagePath = new URL('./fixtures/basic/package.json', import.meta.url); - const packageJsonData = JSON.parse( - await fs.promises.readFile(packagePath, { encoding: 'utf-8' }) - ); - const overriddenPackageJson = Object.assign(packageJsonData, { - dependencies: { - astro: '1.0.0', - }, - }); - - return Promise.all([ - fs.promises.writeFile(packagePath, JSON.stringify(overriddenPackageJson, null, 2), { - encoding: 'utf-8', - }), - ]); -}; - -export const resetFixtures = () => Promise.allSettled([resetBasicFixture()]); |