diff --git a/packages/core/package.json b/packages/core/package.json index ac0b5db1f4d..df0f715c688 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -261,8 +261,7 @@ "@types/prompts": "^2.0.14", "@types/react": "^18.0.9", "@types/resolve": "^1.20.2", - "@types/uuid": "^9.0.0", - "fixturez": "^1.1.0" + "@types/uuid": "^9.0.0" }, "preconstruct": { "entrypoints": [ diff --git a/tests/cli-tests/package.json b/tests/cli-tests/package.json index b46fdbb7fc2..304b7382a87 100644 --- a/tests/cli-tests/package.json +++ b/tests/cli-tests/package.json @@ -18,7 +18,6 @@ "chalk": "^4.1.2", "execa": "^5.1.1", "fast-glob": "^3.2.12", - "fixturez": "^1.1.0", "fs-extra": "^11.0.0", "mime": "^3.0.0", "node-fetch": "^2.6.7", diff --git a/tests/cli-tests/utils.ts b/tests/cli-tests/utils.ts index 4425d24d9ea..418c57c7c47 100644 --- a/tests/cli-tests/utils.ts +++ b/tests/cli-tests/utils.ts @@ -1,12 +1,12 @@ // most of these utilities come from https://github.com/preconstruct/preconstruct/blob/07a24f73f17980c121382bb00ae1c05355294fe4/packages/cli/test-utils/index.ts -import path from 'path'; -import { format } from 'util'; +import path from 'node:path'; +import { format } from 'node:util'; +import fsp from 'node:fs/promises'; import * as fs from 'fs-extra'; import fastGlob from 'fast-glob'; import chalk from 'chalk'; // @ts-ignore -import fixturez from 'fixturez'; import { MigrateEngine } from '@prisma/migrate'; import { uriToCredentials } from '@prisma/internals'; import type { KeystoneConfig } from '@keystone-6/core/types'; @@ -50,8 +50,6 @@ export function recordConsole() { }; } -let f = fixturez(__dirname); - export const symlinkKeystoneDeps = Object.fromEntries( [ '@keystone-6/core', @@ -105,7 +103,7 @@ afterAll(async () => { }); export async function testdir(dir: Fixture): Promise { - const temp = f.temp(); + const temp = await fsp.mkdtemp(__dirname); dirsToRemove.push(temp); await Promise.all( Object.keys(dir).map(async filename => {