Skip to content

Commit

Permalink
drop fixturez dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed Aug 30, 2023
1 parent 8eaf207 commit ca7f452
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
3 changes: 1 addition & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
1 change: 0 additions & 1 deletion tests/cli-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 4 additions & 6 deletions tests/cli-tests/utils.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -50,8 +50,6 @@ export function recordConsole() {
};
}

let f = fixturez(__dirname);

export const symlinkKeystoneDeps = Object.fromEntries(
[
'@keystone-6/core',
Expand Down Expand Up @@ -105,7 +103,7 @@ afterAll(async () => {
});

export async function testdir(dir: Fixture): Promise<string> {
const temp = f.temp();
const temp = await fsp.mkdtemp(__dirname);
dirsToRemove.push(temp);
await Promise.all(
Object.keys(dir).map(async filename => {
Expand Down

0 comments on commit ca7f452

Please sign in to comment.