Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
nitedani committed Jan 1, 2024
1 parent 9a9ba09 commit c4822c7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/vike-express.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ test.beforeAll(async () => {
try {
await killPort(port);
} catch (error) {}
const cp = exec(
`cd ${folder} && node node_modules/vite/bin/vite --host 127.0.0.1 --port ${port} --strictPort`
);
const cp = exec(`cd ${folder} && cross-env PORT=${port} pnpm dev`);
cp.stdout?.pipe(process.stdout);
cp.stderr?.pipe(process.stderr);
await new Promise((resolve) => setTimeout(resolve, 1000));
Expand Down

0 comments on commit c4822c7

Please sign in to comment.