Skip to content

Commit

Permalink
Tests can automatically start server
Browse files Browse the repository at this point in the history
  • Loading branch information
IiroP committed Oct 11, 2024
1 parent 0f6d0e8 commit 06465af
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ public/dist
.vscode
!.vscode/extensions.json
.idea
playwright-report
test-results
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
}
}
}
}
}
5 changes: 3 additions & 2 deletions tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
"version": "0.0.0",
"private": true,
"scripts": {
"test": "playwright test --repeat-each=100"
"test_full": "playwright test --repeat-each=100",
"test": "playwright test"
},
"devDependencies": {
"@playwright/test": "catalog:",
"@tietokilta/config-typescript": "workspace:*",
"@types/node": "catalog:"
}
}
}
10 changes: 5 additions & 5 deletions tests/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ export default defineConfig({
],

/* Run your local dev server before starting the tests */
// webServer: {
// command: 'npm run start',
// url: 'http://127.0.0.1:3000',
// reuseExistingServer: !process.env.CI,
// },
webServer: {
command: 'pnpm -C ../ dev',
url: 'http://127.0.0.1:3000',
//reuseExistingServer: !process.env.CI,
},
});

0 comments on commit 06465af

Please sign in to comment.