From 1b4819d9e5e83e1092bf5abf18ab6e9dde1d5459 Mon Sep 17 00:00:00 2001 From: Bobbie Goede Date: Thu, 25 Jul 2024 17:08:01 +0200 Subject: [PATCH] ci: update test dependencies and remove playwright caching --- .github/workflows/ci.yml | 20 +-- e2e/helper.ts | 2 +- package.json | 4 +- pnpm-lock.yaml | 279 +++++++++++++++++++-------------------- scripts/playwright.ts | 5 +- scripts/vitest.setup.ts | 4 +- shim.d.ts | 2 +- 7 files changed, 144 insertions(+), 172 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f0ab4a4a9..06da51ace 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -164,26 +164,8 @@ jobs: - name: Install dependencies run: pnpm install --no-frozen-lockfile - # https://github.com/vitejs/vite/blob/main/.github/workflows/ci.yml#L62 - # Install playwright's binary under custom directory to cache - - name: Set Playwright path - if: runner.os != 'Windows' - run: echo "PLAYWRIGHT_BROWSERS_PATH=$HOME/.cache/playwright-bin" >> $GITHUB_ENV - - name: Set Playwright path (windows) - if: runner.os == 'Windows' - run: echo "PLAYWRIGHT_BROWSERS_PATH=$HOME\.cache\playwright-bin" >> $env:GITHUB_ENV - - - name: Cache Playwright's binary - uses: actions/cache@v4 - with: - # Playwright removes unused browsers automatically - # So does not need to add playwright version to key - key: ${{ runner.os }}-playwright-bin-v1 - path: ${{ env.PLAYWRIGHT_BROWSERS_PATH }} - - name: Install Playwright - # does not need to explicitly set chromium after https://github.com/microsoft/playwright/issues/14862 is solved - run: pnpm playwright install chromium + run: pnpm playwright-core install chromium - name: Restore dist cache uses: actions/cache@v4 diff --git a/e2e/helper.ts b/e2e/helper.ts index 47a02a4cf..a73187f1a 100644 --- a/e2e/helper.ts +++ b/e2e/helper.ts @@ -1,6 +1,6 @@ import { JSDOM } from 'jsdom' -import type { Page } from 'playwright' +import type { Page } from 'playwright-core' export function sleep(delay: number) { return new Promise(resolve => setTimeout(resolve, delay)) diff --git a/package.json b/package.json index 3c39148e8..e614d0bdf 100644 --- a/package.json +++ b/package.json @@ -112,7 +112,7 @@ "opener": "^1.5.2", "pathe": "^1.1.2", "picocolors": "^1.0.0", - "playwright": "^1.34.0", + "playwright-core": "^1.45.3", "prettier": "^3.2.5", "rc": "^1.2.8", "rimraf": "^6.0.0", @@ -145,7 +145,7 @@ "typescript": "^5.3.3", "typescript-eslint": "^7.5.0", "vitepress": "1.3.1", - "vitest": "^2.0.0", + "vitest": "^2.0.4", "vue": "3.4.31", "vue-i18n": "workspace:*" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0e53f8d39..27f3e021c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -68,7 +68,7 @@ importers: version: 1.2.4 '@vitest/coverage-v8': specifier: ^2.0.0 - version: 2.0.0(vitest@2.0.0(@types/node@20.11.21)(jsdom@24.0.0)(terser@5.27.0)) + version: 2.0.0(vitest@2.0.4(@types/node@20.11.21)(jsdom@24.0.0)(terser@5.27.0)) api-docs-gen: specifier: ^0.4.0 version: 0.4.0(@types/node@20.11.21) @@ -135,9 +135,9 @@ importers: picocolors: specifier: ^1.0.0 version: 1.0.0 - playwright: - specifier: ^1.34.0 - version: 1.41.2 + playwright-core: + specifier: ^1.45.3 + version: 1.45.3 prettier: specifier: ^3.2.5 version: 3.2.5 @@ -164,7 +164,7 @@ importers: version: 3.3.0 serve-static: specifier: ^1.15.0 - version: 1.15.0(supports-color@6.1.0) + version: 1.15.0 textlint: specifier: ^12.6.1 version: 12.6.1 @@ -235,8 +235,8 @@ importers: specifier: 1.3.1 version: 1.3.1(@algolia/client-search@4.23.2)(@types/node@20.11.21)(@vue/composition-api@1.7.2(vue@3.4.31(typescript@5.3.3)))(postcss@8.4.38)(search-insights@2.13.0)(terser@5.27.0)(typescript@5.3.3) vitest: - specifier: ^2.0.0 - version: 2.0.0(@types/node@20.11.21)(jsdom@24.0.0)(terser@5.27.0) + specifier: ^2.0.4 + version: 2.0.4(@types/node@20.11.21)(jsdom@24.0.0)(terser@5.27.0) vue: specifier: 3.4.31 version: 3.4.31(typescript@5.3.3) @@ -1382,10 +1382,6 @@ packages: resolution: {integrity: sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==} engines: {node: '>=8'} - '@jest/schemas@29.6.3': - resolution: {integrity: sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - '@jridgewell/gen-mapping@0.3.3': resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==} engines: {node: '>=6.0.0'} @@ -1752,9 +1748,6 @@ packages: '@shikijs/transformers@1.10.3': resolution: {integrity: sha512-MNjsyye2WHVdxfZUSr5frS97sLGe6G1T+1P41QjyBFJehZphMcr4aBlRLmq6OSPBslYe9byQPVvt/LJCOfxw8Q==} - '@sinclair/typebox@0.27.8': - resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} - '@sindresorhus/chunkify@0.2.0': resolution: {integrity: sha512-mOAiwqu+bIIkNFDCXFJxZEmF9p9WHfSBbpLLmgysYnNkEs7aA0/AvU9+6zLHFqI7JnqdqwAuWu8CbGwGIszRdw==} engines: {node: '>=12'} @@ -2041,20 +2034,23 @@ packages: peerDependencies: vitest: 2.0.0 - '@vitest/expect@2.0.0': - resolution: {integrity: sha512-5BSfZ0+dAVmC6uPF7s+TcKx0i7oyYHb1WQQL5gg6G2c+Qkaa5BNrdRM74sxDfUIZUgYCr6bfCqmJp+X5bfcNxQ==} + '@vitest/expect@2.0.4': + resolution: {integrity: sha512-39jr5EguIoanChvBqe34I8m1hJFI4+jxvdOpD7gslZrVQBKhh8H9eD7J/LJX4zakrw23W+dITQTDqdt43xVcJw==} + + '@vitest/pretty-format@2.0.4': + resolution: {integrity: sha512-RYZl31STbNGqf4l2eQM1nvKPXE0NhC6Eq0suTTePc4mtMQ1Fn8qZmjV4emZdEdG2NOWGKSCrHZjmTqDCDoeFBw==} - '@vitest/runner@2.0.0': - resolution: {integrity: sha512-OovFmlkfRmdhevbWImBUtn9IEM+CKac8O+m9p6W9jTATGVBnDJQ6/jb1gpHyWxsu0ALi5f+TLi+Uyst7AAimMw==} + '@vitest/runner@2.0.4': + resolution: {integrity: sha512-Gk+9Su/2H2zNfNdeJR124gZckd5st4YoSuhF1Rebi37qTXKnqYyFCd9KP4vl2cQHbtuVKjfEKrNJxHHCW8thbQ==} - '@vitest/snapshot@2.0.0': - resolution: {integrity: sha512-B520cSAQwtWgocPpARadnNLslHCxFs5tf7SG2TT96qz+SZgsXqcB1xI3w3/S9kUzdqykEKrMLvW+sIIpMcuUdw==} + '@vitest/snapshot@2.0.4': + resolution: {integrity: sha512-or6Mzoz/pD7xTvuJMFYEtso1vJo1S5u6zBTinfl+7smGUhqybn6VjzCDMhmTyVOFWwkCMuNjmNNxnyXPgKDoPw==} - '@vitest/spy@2.0.0': - resolution: {integrity: sha512-0g7ho4wBK09wq8iNZFtUcQZcUcbPmbLWFotL0GXel0fvk5yPi4nTEKpIvZ+wA5eRyqPUCIfIUl10AWzLr67cmA==} + '@vitest/spy@2.0.4': + resolution: {integrity: sha512-uTXU56TNoYrTohb+6CseP8IqNwlNdtPwEO0AWl+5j7NelS6x0xZZtP0bDWaLvOfUbaYwhhWp1guzXUxkC7mW7Q==} - '@vitest/utils@2.0.0': - resolution: {integrity: sha512-t0jbx8VugWEP6A29NbyfQKVU68Vo6oUw0iX3a8BwO3nrZuivfHcFO4Y5UsqXlplX+83P9UaqEvC2YQhspC0JSA==} + '@vitest/utils@2.0.4': + resolution: {integrity: sha512-Zc75QuuoJhOBnlo99ZVUkJIuq4Oj0zAkrQ2VzCqNCx6wAwViHEh5Fnp4fiJTE9rA+sAoXRf00Z9xGgfEzV6fzQ==} '@volar/language-core@1.11.1': resolution: {integrity: sha512-dOcNn3i9GgZAcJt43wuaEykSluAuOkQgzni1cuxLxTV0nJKanQztp7FxyswdRILaKH+P2XZMPRp2S4MV/pElCw==} @@ -2420,10 +2416,6 @@ packages: resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} engines: {node: '>=8'} - ansi-styles@5.2.0: - resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==} - engines: {node: '>=10'} - ansi-styles@6.2.1: resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} engines: {node: '>=12'} @@ -3183,10 +3175,6 @@ packages: detect-node@2.1.0: resolution: {integrity: sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==} - diff-sequences@29.6.3: - resolution: {integrity: sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - diff@4.0.2: resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} engines: {node: '>=0.3.1'} @@ -3702,11 +3690,6 @@ packages: os: [darwin] deprecated: The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2 - fsevents@2.3.2: - resolution: {integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==} - engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} - os: [darwin] - fsevents@2.3.3: resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} @@ -5491,14 +5474,9 @@ packages: platform@1.3.6: resolution: {integrity: sha512-fnWVljUchTro6RiCFvCXBbNhJc2NijN7oIQxbwsyL0buWJPG85v81ehlHI9fXrJsMNgTofEoWIQeClKpgxFLrg==} - playwright-core@1.41.2: - resolution: {integrity: sha512-VaTvwCA4Y8kxEe+kfm2+uUUw5Lubf38RxF7FpBxLPmGe5sdNkSg5e3ChEigaGrX7qdqT3pt2m/98LiyvU2x6CA==} - engines: {node: '>=16'} - hasBin: true - - playwright@1.41.2: - resolution: {integrity: sha512-v0bOa6H2GJChDL8pAeLa/LZC4feoAMbSQm1/jF/ySsWWoaNItvrMP7GEkvEEFyCTUYKMxjQKaTSg5up7nR6/8A==} - engines: {node: '>=16'} + playwright-core@1.45.3: + resolution: {integrity: sha512-+ym0jNbcjikaOwwSZycFbwkWgfruWvYlJfThKYAlImbxUgdWFO2oW70ojPm4OpE4t6TAo2FY/smM+hpVTtkhDA==} + engines: {node: '>=18'} hasBin: true pluralize@2.0.0: @@ -5566,10 +5544,6 @@ packages: engines: {node: '>=14'} hasBin: true - pretty-format@29.7.0: - resolution: {integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==} - engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} - process-es6@0.11.6: resolution: {integrity: sha512-GYBRQtL4v3wgigq10Pv58jmTbFXlIiTbSfgnNqZLY0ldUPqy1rRxDI5fCjoCpnM6TqmHQI8ydzTBXW86OYc0gA==} @@ -5687,9 +5661,6 @@ packages: resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==} hasBin: true - react-is@18.2.0: - resolution: {integrity: sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==} - read-package-json-fast@3.0.2: resolution: {integrity: sha512-0J+Msgym3vrLOUB3hzQCuZHII0xkNGCtz/HJH9xZshwv9DbDwkw1KaE3gx/e2J5rpEY5rtOy6cyhKOPrkP7FZw==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} @@ -6529,6 +6500,10 @@ packages: resolution: {integrity: sha512-KIKExllK7jp3uvrNtvRBYBWBOAXSX8ZvoaD8T+7KB/QHIuoJW3Pmr60zucywjAlMb5TeXUkcs/MWeWLu0qvuAQ==} engines: {node: ^18.0.0 || >=20.0.0} + tinyrainbow@1.2.0: + resolution: {integrity: sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==} + engines: {node: '>=14.0.0'} + tinyspy@3.0.0: resolution: {integrity: sha512-q5nmENpTHgiPVd1cJDDc9cVoYN5x4vCvwT3FMilvKPKneCBZAxn2YWQjDF0UMcE9k0Cay1gBiDfTMU0g+mPMQA==} engines: {node: '>=14.0.0'} @@ -6883,8 +6858,8 @@ packages: vfile@4.2.1: resolution: {integrity: sha512-O6AE4OskCG5S1emQ/4gl8zK586RqA3srz3nfK/Viy0UPToBc5Trp9BVFb1u0CjsKrAWwnpr4ifM/KBXPWwJbCA==} - vite-node@2.0.0: - resolution: {integrity: sha512-jZtezmjcgZTkMisIi68TdY8w/PqPTxK2pbfTU9/4Gqus1K3AVZqkwH0z7Vshe3CD6mq9rJq8SpqmuefDMIqkfQ==} + vite-node@2.0.4: + resolution: {integrity: sha512-ZpJVkxcakYtig5iakNeL7N3trufe3M6vGuzYAr4GsbCTwobDeyPJpE4cjDhhPluv8OvQCFzu2LWp6GkoKRITXA==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -6956,15 +6931,15 @@ packages: postcss: optional: true - vitest@2.0.0: - resolution: {integrity: sha512-NvccE2tZhIoPSq3o3AoTBmItwhHNjzIxvOgfdzILIscyzSGOtw2+A1d/JJbS86HDVbc6TS5HnckQuCgTfp0HDQ==} + vitest@2.0.4: + resolution: {integrity: sha512-luNLDpfsnxw5QSW4bISPe6tkxVvv5wn2BBs/PuDRkhXZ319doZyLOBr1sjfB5yCEpTiU7xCAdViM8TNVGPwoog==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: '@edge-runtime/vm': '*' '@types/node': ^18.0.0 || >=20.0.0 - '@vitest/browser': 2.0.0 - '@vitest/ui': 2.0.0 + '@vitest/browser': 2.0.4 + '@vitest/ui': 2.0.4 happy-dom: '*' jsdom: '*' peerDependenciesMeta: @@ -7157,8 +7132,8 @@ packages: engines: {node: '>= 8'} hasBin: true - why-is-node-running@2.2.2: - resolution: {integrity: sha512-6tSwToZxTOcotxHeA+qGCq1mVzKR3CwcJGmVcY+QE8SHy6TnpFnh8PAvPNHYr7EcuVeG0QSMxtYCuO1ta/G/oA==} + why-is-node-running@2.3.0: + resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} engines: {node: '>=8'} hasBin: true @@ -7810,7 +7785,7 @@ snapshots: '@eslint/eslintrc@3.0.2': dependencies: ajv: 6.12.6 - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 espree: 10.0.1 globals: 14.0.0 ignore: 5.3.1 @@ -7850,7 +7825,7 @@ snapshots: '@humanwhocodes/config-array@0.13.0': dependencies: '@humanwhocodes/object-schema': 2.0.3 - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -7865,7 +7840,7 @@ snapshots: dependencies: '@intlify/core': 9.10.2 '@intlify/message-compiler': 9.10.2 - '@intlify/shared': 9.11.0 + '@intlify/shared': 9.13.1 jsonc-eslint-parser: 1.4.1 source-map: 0.6.1 yaml-eslint-parser: 0.3.2 @@ -7991,10 +7966,6 @@ snapshots: '@istanbuljs/schema@0.1.3': {} - '@jest/schemas@29.6.3': - dependencies: - '@sinclair/typebox': 0.27.8 - '@jridgewell/gen-mapping@0.3.3': dependencies: '@jridgewell/set-array': 1.1.2 @@ -8307,7 +8278,7 @@ snapshots: '@secretlint/profiler': 3.1.0 '@secretlint/types': 3.3.0 '@textlint/module-interop': 1.2.5 - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 rc-config-loader: 3.0.0 try-resolve: 1.0.1 transitivePeerDependencies: @@ -8322,7 +8293,7 @@ snapshots: dependencies: '@secretlint/profiler': 3.1.0 '@secretlint/types': 3.3.0 - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 structured-source: 3.0.2 transitivePeerDependencies: - supports-color @@ -8333,7 +8304,7 @@ snapshots: '@textlint/linter-formatter': 3.3.5 '@textlint/types': 1.5.5 chalk: 4.1.2 - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 pluralize: 8.0.0 strip-ansi: 6.0.1 table: 6.8.1 @@ -8349,7 +8320,7 @@ snapshots: '@secretlint/formatter': 3.3.0 '@secretlint/profiler': 3.1.0 '@secretlint/source-creator': 3.3.0 - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 p-map: 4.0.0 transitivePeerDependencies: - supports-color @@ -8423,8 +8394,6 @@ snapshots: dependencies: shiki: 1.10.3 - '@sinclair/typebox@0.27.8': {} - '@sindresorhus/chunkify@0.2.0': {} '@sindresorhus/df@1.0.1': {} @@ -8451,7 +8420,7 @@ snapshots: '@textlint/ast-tester@12.6.1': dependencies: '@textlint/ast-node-types': 12.6.1 - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 transitivePeerDependencies: - supports-color @@ -8465,7 +8434,7 @@ snapshots: '@textlint/module-interop': 12.6.1 '@textlint/types': 12.6.1 '@textlint/utils': 12.6.1 - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 rc-config-loader: 4.1.3 try-resolve: 1.0.1 transitivePeerDependencies: @@ -8478,7 +8447,7 @@ snapshots: '@textlint/module-interop': 12.6.1 '@textlint/types': 12.6.1 chalk: 4.1.2 - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 diff: 4.0.2 is-file: 1.0.0 string-width: 4.2.3 @@ -8497,7 +8466,7 @@ snapshots: '@textlint/source-code-fixer': 12.6.1 '@textlint/types': 12.6.1 '@textlint/utils': 12.6.1 - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 deep-equal: 1.1.2 structured-source: 4.0.0 transitivePeerDependencies: @@ -8510,7 +8479,7 @@ snapshots: '@textlint/module-interop': 12.6.1 '@textlint/types': 12.6.1 chalk: 4.1.2 - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 is-file: 1.0.0 js-yaml: 3.14.1 lodash: 4.17.21 @@ -8532,7 +8501,7 @@ snapshots: '@textlint/types': 1.5.5 chalk: 1.1.3 concat-stream: 1.6.2 - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 is-file: 1.0.0 js-yaml: 3.14.1 optionator: 0.9.3 @@ -8549,7 +8518,7 @@ snapshots: '@textlint/markdown-to-ast@12.6.1': dependencies: '@textlint/ast-node-types': 12.6.1 - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 mdast-util-gfm-autolink-literal: 0.1.3 remark-footnotes: 3.0.0 remark-frontmatter: 3.0.0 @@ -8576,7 +8545,7 @@ snapshots: '@textlint/source-code-fixer@12.6.1': dependencies: '@textlint/types': 12.6.1 - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 transitivePeerDependencies: - supports-color @@ -8727,7 +8696,7 @@ snapshots: '@typescript-eslint/type-utils': 7.5.0(eslint@9.1.0)(typescript@5.3.3) '@typescript-eslint/utils': 7.5.0(eslint@9.1.0)(typescript@5.3.3) '@typescript-eslint/visitor-keys': 7.5.0 - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 eslint: 9.1.0 graphemer: 1.4.0 ignore: 5.3.1 @@ -8745,7 +8714,7 @@ snapshots: '@typescript-eslint/types': 7.5.0 '@typescript-eslint/typescript-estree': 7.5.0(typescript@5.3.3) '@typescript-eslint/visitor-keys': 7.5.0 - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 eslint: 9.1.0 optionalDependencies: typescript: 5.3.3 @@ -8761,7 +8730,7 @@ snapshots: dependencies: '@typescript-eslint/typescript-estree': 7.5.0(typescript@5.3.3) '@typescript-eslint/utils': 7.5.0(eslint@9.1.0)(typescript@5.3.3) - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 eslint: 9.1.0 ts-api-utils: 1.2.1(typescript@5.3.3) optionalDependencies: @@ -8775,7 +8744,7 @@ snapshots: dependencies: '@typescript-eslint/types': 7.5.0 '@typescript-eslint/visitor-keys': 7.5.0 - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 globby: 11.1.0 is-glob: 4.0.3 minimatch: 9.0.3 @@ -8835,7 +8804,7 @@ snapshots: vite: 5.2.8(@types/node@20.11.21)(terser@5.27.0) vue: 3.4.31(typescript@5.3.3) - '@vitest/coverage-v8@2.0.0(vitest@2.0.0(@types/node@20.11.21)(jsdom@24.0.0)(terser@5.27.0))': + '@vitest/coverage-v8@2.0.0(vitest@2.0.4(@types/node@20.11.21)(jsdom@24.0.0)(terser@5.27.0))': dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 0.2.3 @@ -8850,37 +8819,42 @@ snapshots: std-env: 3.7.0 strip-literal: 2.1.0 test-exclude: 7.0.1 - vitest: 2.0.0(@types/node@20.11.21)(jsdom@24.0.0)(terser@5.27.0) + vitest: 2.0.4(@types/node@20.11.21)(jsdom@24.0.0)(terser@5.27.0) transitivePeerDependencies: - supports-color - '@vitest/expect@2.0.0': + '@vitest/expect@2.0.4': dependencies: - '@vitest/spy': 2.0.0 - '@vitest/utils': 2.0.0 + '@vitest/spy': 2.0.4 + '@vitest/utils': 2.0.4 chai: 5.1.1 + tinyrainbow: 1.2.0 - '@vitest/runner@2.0.0': + '@vitest/pretty-format@2.0.4': dependencies: - '@vitest/utils': 2.0.0 + tinyrainbow: 1.2.0 + + '@vitest/runner@2.0.4': + dependencies: + '@vitest/utils': 2.0.4 pathe: 1.1.2 - '@vitest/snapshot@2.0.0': + '@vitest/snapshot@2.0.4': dependencies: + '@vitest/pretty-format': 2.0.4 magic-string: 0.30.10 pathe: 1.1.2 - pretty-format: 29.7.0 - '@vitest/spy@2.0.0': + '@vitest/spy@2.0.4': dependencies: tinyspy: 3.0.0 - '@vitest/utils@2.0.0': + '@vitest/utils@2.0.4': dependencies: - diff-sequences: 29.6.3 + '@vitest/pretty-format': 2.0.4 estree-walker: 3.0.3 loupe: 3.1.1 - pretty-format: 29.7.0 + tinyrainbow: 1.2.0 '@volar/language-core@1.11.1': dependencies: @@ -9280,7 +9254,7 @@ snapshots: agent-base@7.1.0: dependencies: - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 transitivePeerDependencies: - supports-color @@ -9379,8 +9353,6 @@ snapshots: dependencies: color-convert: 2.0.1 - ansi-styles@5.2.0: {} - ansi-styles@6.2.1: {} anymatch@2.0.0(supports-color@6.1.0): @@ -9402,7 +9374,7 @@ snapshots: '@microsoft/tsdoc': 0.13.2 '@microsoft/tsdoc-config': 0.15.2 chalk: 4.1.2 - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 meow: 9.0.0 transitivePeerDependencies: - '@types/node' @@ -10118,6 +10090,10 @@ snapshots: de-indent@1.0.2: {} + debug@2.6.9: + dependencies: + ms: 2.0.0 + debug@2.6.9(supports-color@6.1.0): dependencies: ms: 2.0.0 @@ -10130,6 +10106,10 @@ snapshots: optionalDependencies: supports-color: 6.1.0 + debug@4.3.4: + dependencies: + ms: 2.1.2 + debug@4.3.4(supports-color@6.1.0): dependencies: ms: 2.1.2 @@ -10244,8 +10224,6 @@ snapshots: detect-node@2.1.0: {} - diff-sequences@29.6.3: {} - diff@4.0.2: {} diffie-hellman@5.0.3: @@ -10539,7 +10517,7 @@ snapshots: ajv: 6.12.6 chalk: 4.1.2 cross-spawn: 7.0.3 - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 escape-string-regexp: 4.0.0 eslint-scope: 8.0.1 eslint-visitor-keys: 4.0.0 @@ -10967,9 +10945,6 @@ snapshots: nan: 2.19.0 optional: true - fsevents@2.3.2: - optional: true - fsevents@2.3.3: optional: true @@ -11337,7 +11312,7 @@ snapshots: http-proxy-agent@7.0.1: dependencies: agent-base: 7.1.0 - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 transitivePeerDependencies: - supports-color @@ -11366,7 +11341,7 @@ snapshots: https-proxy-agent@7.0.3: dependencies: agent-base: 7.1.0 - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 transitivePeerDependencies: - supports-color @@ -11918,7 +11893,7 @@ snapshots: dependencies: chalk: 5.3.0 commander: 11.1.0 - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 execa: 8.0.1 lilconfig: 3.0.0 listr2: 8.0.1 @@ -12291,7 +12266,7 @@ snapshots: micromark@2.11.4: dependencies: - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 parse-entities: 2.0.0 transitivePeerDependencies: - supports-color @@ -12922,13 +12897,7 @@ snapshots: platform@1.3.6: {} - playwright-core@1.41.2: {} - - playwright@1.41.2: - dependencies: - playwright-core: 1.41.2 - optionalDependencies: - fsevents: 2.3.2 + playwright-core@1.45.3: {} pluralize@2.0.0: {} @@ -12997,12 +12966,6 @@ snapshots: prettier@3.2.5: {} - pretty-format@29.7.0: - dependencies: - '@jest/schemas': 29.6.3 - ansi-styles: 5.2.0 - react-is: 18.2.0 - process-es6@0.11.6: {} process-nextick-args@2.0.1: {} @@ -13107,7 +13070,7 @@ snapshots: rc-config-loader@3.0.0: dependencies: - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 js-yaml: 3.14.1 json5: 2.2.3 require-from-string: 2.0.2 @@ -13116,7 +13079,7 @@ snapshots: rc-config-loader@4.1.3: dependencies: - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 js-yaml: 4.1.0 json5: 2.2.3 require-from-string: 2.0.2 @@ -13136,8 +13099,6 @@ snapshots: minimist: 1.2.8 strip-json-comments: 2.0.1 - react-is@18.2.0: {} - read-package-json-fast@3.0.2: dependencies: json-parse-even-better-errors: 3.0.1 @@ -13480,7 +13441,7 @@ snapshots: '@secretlint/formatter': 3.3.0 '@secretlint/node': 3.3.0 '@secretlint/profiler': 3.1.0 - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 globby: 11.1.0 meow: 9.0.0 read-pkg: 5.2.0 @@ -13516,6 +13477,24 @@ snapshots: dependencies: lru-cache: 6.0.0 + send@0.18.0: + dependencies: + debug: 2.6.9 + depd: 2.0.0 + destroy: 1.2.0 + encodeurl: 1.0.2 + escape-html: 1.0.3 + etag: 1.8.1 + fresh: 0.5.2 + http-errors: 2.0.0 + mime: 1.6.0 + ms: 2.1.3 + on-finished: 2.4.1 + range-parser: 1.2.1 + statuses: 2.0.1 + transitivePeerDependencies: + - supports-color + send@0.18.0(supports-color@6.1.0): dependencies: debug: 2.6.9(supports-color@6.1.0) @@ -13566,6 +13545,15 @@ snapshots: transitivePeerDependencies: - supports-color + serve-static@1.15.0: + dependencies: + encodeurl: 1.0.2 + escape-html: 1.0.3 + parseurl: 1.3.3 + send: 0.18.0 + transitivePeerDependencies: + - supports-color + serve-static@1.15.0(supports-color@6.1.0): dependencies: encodeurl: 1.0.2 @@ -14155,7 +14143,7 @@ snapshots: '@textlint/textlint-plugin-text': 12.6.1 '@textlint/types': 12.6.1 '@textlint/utils': 12.6.1 - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 deep-equal: 1.1.2 file-entry-cache: 5.0.1 get-stdin: 5.0.1 @@ -14191,6 +14179,8 @@ snapshots: tinypool@1.0.0: {} + tinyrainbow@1.2.0: {} + tinyspy@3.0.0: {} to-arraybuffer@1.0.1: {} @@ -14542,12 +14532,12 @@ snapshots: unist-util-stringify-position: 2.0.3 vfile-message: 2.0.4 - vite-node@2.0.0(@types/node@20.11.21)(terser@5.27.0): + vite-node@2.0.4(@types/node@20.11.21)(terser@5.27.0): dependencies: cac: 6.7.14 debug: 4.3.5 pathe: 1.1.2 - picocolors: 1.0.1 + tinyrainbow: 1.2.0 vite: 5.2.8(@types/node@20.11.21)(terser@5.27.0) transitivePeerDependencies: - '@types/node' @@ -14626,26 +14616,27 @@ snapshots: - typescript - universal-cookie - vitest@2.0.0(@types/node@20.11.21)(jsdom@24.0.0)(terser@5.27.0): + vitest@2.0.4(@types/node@20.11.21)(jsdom@24.0.0)(terser@5.27.0): dependencies: '@ampproject/remapping': 2.3.0 - '@vitest/expect': 2.0.0 - '@vitest/runner': 2.0.0 - '@vitest/snapshot': 2.0.0 - '@vitest/spy': 2.0.0 - '@vitest/utils': 2.0.0 + '@vitest/expect': 2.0.4 + '@vitest/pretty-format': 2.0.4 + '@vitest/runner': 2.0.4 + '@vitest/snapshot': 2.0.4 + '@vitest/spy': 2.0.4 + '@vitest/utils': 2.0.4 chai: 5.1.1 debug: 4.3.5 execa: 8.0.1 magic-string: 0.30.10 pathe: 1.1.2 - picocolors: 1.0.1 std-env: 3.7.0 tinybench: 2.8.0 tinypool: 1.0.0 + tinyrainbow: 1.2.0 vite: 5.2.8(@types/node@20.11.21)(terser@5.27.0) - vite-node: 2.0.0(@types/node@20.11.21)(terser@5.27.0) - why-is-node-running: 2.2.2 + vite-node: 2.0.4(@types/node@20.11.21)(terser@5.27.0) + why-is-node-running: 2.3.0 optionalDependencies: '@types/node': 20.11.21 jsdom: 24.0.0 @@ -14670,7 +14661,7 @@ snapshots: vue-eslint-parser@9.4.2(eslint@9.1.0): dependencies: - debug: 4.3.4(supports-color@6.1.0) + debug: 4.3.4 eslint: 9.1.0 eslint-scope: 7.2.2 eslint-visitor-keys: 3.4.3 @@ -14933,7 +14924,7 @@ snapshots: dependencies: isexe: 2.0.0 - why-is-node-running@2.2.2: + why-is-node-running@2.3.0: dependencies: siginfo: 2.0.0 stackback: 0.0.2 diff --git a/scripts/playwright.ts b/scripts/playwright.ts index 3271b89da..fb2c2e26e 100644 --- a/scripts/playwright.ts +++ b/scripts/playwright.ts @@ -1,10 +1,9 @@ async function main() { try { - // @ts-ignore - await import('playwright') + await import('playwright-core') } catch (e) { console.error( - 'Playwright is not installed. Please run `pnpm playwright install chromium`' + 'Playwright is not installed. Please run `pnpm playwright-core install chromium`' ) throw e } diff --git a/scripts/vitest.setup.ts b/scripts/vitest.setup.ts index e2abc7194..8894f1bdb 100644 --- a/scripts/vitest.setup.ts +++ b/scripts/vitest.setup.ts @@ -1,7 +1,7 @@ import { afterAll, beforeAll } from 'vitest' -import playwright from 'playwright' +import playwright from 'playwright-core' -import type { LaunchOptions } from 'playwright' +import type { LaunchOptions } from 'playwright-core' beforeAll(async () => { const type = process.env.E2E_BROWSER || 'chromium' diff --git a/shim.d.ts b/shim.d.ts index 6c6d87747..c380f148b 100644 --- a/shim.d.ts +++ b/shim.d.ts @@ -1,4 +1,4 @@ -import type { Browser, Page } from 'playwright' +import type { Browser, Page } from 'playwright-core' declare global { namespace globalThis {