Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/playwright-install-on-test-e2e.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'sv': patch
---

fix(playwright): move `playwright install` from `prepare` to `test:e2e` script
2 changes: 1 addition & 1 deletion packages/sv/src/addons/playwright.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export default defineAddon({
sv.file(
file.package,
transforms.json(({ data, json }) => {
json.packageScriptsUpsert(data, 'prepare', 'playwright install', { mode: 'prepend' });
json.packageScriptsUpsert(data, 'test:e2e', 'playwright test');
json.packageScriptsUpsert(data, 'test:e2e', 'playwright install', { mode: 'prepend' });
json.packageScriptsUpsert(data, 'test', 'npm run test:e2e');
})
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"prepare": "playwright install && svelte-kit sync || echo ''",
"prepare": "svelte-kit sync || echo ''",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check . && eslint .",
"format": "prettier --write .",
"test:unit": "vitest",
"test": "npm run test:unit -- --run && npm run test:e2e",
"test:e2e": "playwright test",
"test:e2e": "playwright install && playwright test",
"db:push": "drizzle-kit push",
"db:generate": "drizzle-kit generate",
"db:migrate": "drizzle-kit migrate",
Expand Down
Loading