From 828276f06babce9d0a4d9fc57e1a7d024c469d99 Mon Sep 17 00:00:00 2001 From: Puru Vijay <47742487+PuruVJ@users.noreply.github.com> Date: Fri, 7 Jul 2023 17:39:10 +0530 Subject: [PATCH] chore: Skip playwright instaling browsers (#8935) * Push * try npmrc route * Rootnpmrc * Add command to install chromium for running tests --- .npmrc | 1 + CONTRIBUTING.md | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000000..33484750d0 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +playwright_skip_browser_download=1 \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f7896b86c8..8c66b30ebf 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -97,6 +97,8 @@ Test samples are kept in `/test/xxx/samples` folder. #### Running tests +> PREREQUISITE: Install chromium via playwright by running `pnpm playwright install chromium` + 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`.