Skip to content

Commit

Permalink
Merge pull request #74 from edivados/fix-test-setup
Browse files Browse the repository at this point in the history
fix tests leaving behind processes
  • Loading branch information
nksaraf authored Jan 1, 2024
2 parents c96ab89 + 6e502d8 commit 16814e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ packages:
- "packages/**"
- "examples/**"
- "frameworks/**"
- "test/**"
- "test/"
- "test/templates/**"
- "docs/**"
- 'talks/**'
- "!**/.tmp/**"
Expand Down
4 changes: 2 additions & 2 deletions test/helpers/create-fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export async function createDevFixture(init: FixtureInit) {

let ip = "localhost";
let port = await getPort();
let proc = spawn("npm", ["run", "dev"], {
let proc = spawn("node", ["node_modules/vinxi/bin/cli.mjs", "dev"], {
cwd: projectDir,
env: {
...process.env,
Expand Down Expand Up @@ -171,7 +171,7 @@ export async function createFixture(init: FixtureInit) {

let ip = "localhost";
let port = await getPort();
let proc = spawn("npm", ["run", "start"], {
let proc = spawn("node", [".output/server/index.mjs"], {
cwd: projectDir,
env: {
...process.env,
Expand Down

0 comments on commit 16814e6

Please sign in to comment.