Skip to content

Commit 4b2bb4b

Browse files
committed
03/01: simplify playwright global setup
1 parent f3b429b commit 4b2bb4b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import { spawnSync } from 'node:child_process'
22

33
export default function globalSetup() {
4-
spawnSync('npx', ['prisma', 'migrate', 'reset', '--force', '--skip-seed'], {
4+
spawnSync('prisma', ['generate', '--sql'], {
55
stdio: 'inherit',
6-
shell: true,
76
})
87

9-
spawnSync('npm', ['run', 'prisma:setup'], {
8+
spawnSync('prisma', ['migrate', 'reset', '--force', '--skip-seed'], {
109
stdio: 'inherit',
11-
shell: true,
1210
})
1311
}

0 commit comments

Comments
 (0)