test: use firebase hosting emulator
This commit is contained in:
parent
17735fd855
commit
cd528cd130
9 changed files with 64 additions and 6 deletions
|
@ -6,8 +6,8 @@
|
|||
"scripts": {
|
||||
"cp": "cp ../../packages/content/dist/skills.svg ../../packages/content/dist/resume.pdf static",
|
||||
"dev": "vite dev",
|
||||
"dev:headless": "vite dev --open false",
|
||||
"build": "pnpm cp && vite build",
|
||||
"serve": "cd ../.. && firebase emulators:start --only hosting --config=firebase.test.main.json",
|
||||
"test:e2e": "playwright test",
|
||||
"clean": "rm -rf .turbo .svelte-kit build node_modules vite.config.ts.timestamp-*",
|
||||
"lint": "eslint ."
|
||||
|
|
|
@ -16,7 +16,7 @@ const config: PlaywrightTestConfig = {
|
|||
// Run your local dev server before starting the tests:
|
||||
// https://playwright.dev/docs/test-advanced#launching-a-development-web-server-during-the-tests
|
||||
webServer: {
|
||||
command: "pnpm dev:headless",
|
||||
command: "pnpm serve",
|
||||
url: baseURL,
|
||||
timeout: 120 * 1000,
|
||||
// eslint-disable-next-line turbo/no-undeclared-env-vars
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue