Skip to content

Commit

Permalink
Add explicit definition of Playwright project test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
mtyszczak committed Oct 30, 2023
1 parent 18a9fd1 commit 22cf56b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion programs/beekeeper/beekeeper_wasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"postinstall": "playwright install",
"prebuild": "cd ../../.. && husky install programs/beekeeper/beekeeper_wasm/.husky",
"build": "tsc",
"test": "unset CI && playwright test --workers 1 --max-failures 1 __tests__",
"test": "unset CI && playwright test --workers 1 --max-failures 1 --project=beekeeper_testsuite",
"prepack": "cp ../../../LICENSE.md ./LICENSE.md"
},
"license": "SEE LICENSE IN LICENSE.md",
Expand Down
6 changes: 6 additions & 0 deletions programs/beekeeper/beekeeper_wasm/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ export default defineConfig({
['junit', { outputFile: 'results.xml' }],
['json', { outputFile: 'results.json' }]
],
projects: [
{
name: "beekeeper_testsuite",
testDir: "./__tests__/"
}
],
// Run your local dev server before starting the tests
webServer: {
command: 'npx http-server'
Expand Down

0 comments on commit 22cf56b

Please sign in to comment.