0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-24 00:07:30 +01:00

chore: Skip playwright instaling browsers (#8935)

* Push

* try npmrc route

* Rootnpmrc

* Add command to install chromium for running tests
This commit is contained in:
Puru Vijay 2023-07-07 17:39:10 +05:30 committed by GitHub
parent 3ff0084dc3
commit 828276f06b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

1
.npmrc Normal file
View File

@ -0,0 +1 @@
playwright_skip_browser_download=1

View File

@ -97,6 +97,8 @@ Test samples are kept in `/test/xxx/samples` folder.
#### Running tests #### Running tests
> PREREQUISITE: Install chromium via playwright by running `pnpm playwright install chromium`
1. To run test, run `pnpm test`. 1. To run test, run `pnpm test`.
1. To run test for a specific feature, you can use the `-g` (aka `--grep`) option. For example, to only run test involving transitions, run `pnpm test -- -g transition`. 1. To run test for a specific feature, you can use the `-g` (aka `--grep`) option. For example, to only run test involving transitions, run `pnpm test -- -g transition`.