Skip to content

Commit 1f147f5

Browse files
committed
Moved firebase starting to playwright config
1 parent ac98ee8 commit 1f147f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"preview": "vite preview",
88
"package": "svelte-kit sync && svelte-package && publint",
99
"prepublishOnly": "npm run package",
10-
"test": "firebase emulators:exec --only firestore,storage,auth 'playwright test'",
10+
"test": "playwright test",
1111
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
1212
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
1313
"lint": "eslint .",

playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { defineConfig } from '@playwright/test';
22

33
export default defineConfig({
44
webServer: {
5-
command: 'NODE_ENV=ci npm run build && npm run preview',
5+
command: 'firebase emulators:exec --only firestore,storage,auth "NODE_ENV=ci npm run build && npm run preview"',
66
port: 4173
77
},
88
testDir: 'tests',

0 commit comments

Comments
 (0)