* all references to jest should have been removed in #1033 * clarify that `cross-env` is used to ensure that environmental variables get applied on Windows (previous usage of cross-env was removed in #1033)
This commit is contained in:
2
.changeset/last-jest-to-vitest.md
Normal file
2
.changeset/last-jest-to-vitest.md
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
---
|
||||||
@@ -28,6 +28,7 @@
|
|||||||
"@typescript-eslint/parser": "^5.62.0",
|
"@typescript-eslint/parser": "^5.62.0",
|
||||||
"browserslist": "^4.22.1",
|
"browserslist": "^4.22.1",
|
||||||
"concurrently": "^7.1.0",
|
"concurrently": "^7.1.0",
|
||||||
|
"cross-env": "^7.0.3",
|
||||||
"esbuild-plugin-umd-wrapper": "^2.0.0",
|
"esbuild-plugin-umd-wrapper": "^2.0.0",
|
||||||
"eslint": "^8.53.0",
|
"eslint": "^8.53.0",
|
||||||
"eslint-plugin-compat": "^4.2.0",
|
"eslint-plugin-compat": "^4.2.0",
|
||||||
|
|||||||
@@ -5,10 +5,11 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "npm run prepack",
|
"prepare": "npm run prepack",
|
||||||
"prepack": "npm run build",
|
"prepack": "npm run build",
|
||||||
"retest": "jest",
|
"retest": "vitest run",
|
||||||
"test": "vitest run",
|
"test": "yarn build && vitest run",
|
||||||
"test:watch": "vitest watch",
|
"test:watch": "vitest watch",
|
||||||
"test:update": "vitest run --update",
|
"retest:update": "vitest run --update",
|
||||||
|
"test:update": "yarn build && vitest run --update",
|
||||||
"dev": "vite build --watch",
|
"dev": "vite build --watch",
|
||||||
"build": "yarn check-types && vite build",
|
"build": "yarn check-types && vite build",
|
||||||
"check-types": "tsc --noEmit",
|
"check-types": "tsc --noEmit",
|
||||||
@@ -55,7 +56,6 @@
|
|||||||
"@types/jsdom": "^20.0.0",
|
"@types/jsdom": "^20.0.0",
|
||||||
"@types/node": "^18.15.11",
|
"@types/node": "^18.15.11",
|
||||||
"@types/puppeteer": "^5.4.4",
|
"@types/puppeteer": "^5.4.4",
|
||||||
"cross-env": "^5.2.0",
|
|
||||||
"puppeteer": "^17.1.3",
|
"puppeteer": "^17.1.3",
|
||||||
"ts-node": "^7.0.1",
|
"ts-node": "^7.0.1",
|
||||||
"tslib": "^1.9.3",
|
"tslib": "^1.9.3",
|
||||||
|
|||||||
@@ -7,12 +7,12 @@
|
|||||||
"prepack": "npm run build",
|
"prepack": "npm run build",
|
||||||
"retest": "vitest run --exclude test/benchmark",
|
"retest": "vitest run --exclude test/benchmark",
|
||||||
"build-and-test": "yarn build && yarn retest",
|
"build-and-test": "yarn build && yarn retest",
|
||||||
"test:headless": "PUPPETEER_HEADLESS=true yarn build-and-test",
|
"test:headless": "cross-env PUPPETEER_HEADLESS=true yarn build-and-test",
|
||||||
"test:headful": "PUPPETEER_HEADLESS=false yarn build-and-test",
|
"test:headful": "cross-env PUPPETEER_HEADLESS=false yarn build-and-test",
|
||||||
"test": "yarn test:headless",
|
"test": "yarn test:headless",
|
||||||
"test:watch": "yarn build && PUPPETEER_HEADLESS=true yarn vitest --exclude test/benchmark",
|
"test:watch": "yarn build && cross-env PUPPETEER_HEADLESS=true yarn vitest --exclude test/benchmark",
|
||||||
"test:update": "yarn test:headless --update",
|
"test:update": "yarn test:headless --update",
|
||||||
"retest:update": "PUPPETEER_HEADLESS=true yarn retest --update",
|
"retest:update": "cross-env PUPPETEER_HEADLESS=true yarn retest --update",
|
||||||
"repl": "yarn build && node scripts/repl.js",
|
"repl": "yarn build && node scripts/repl.js",
|
||||||
"live-stream": "yarn build && node scripts/stream.js",
|
"live-stream": "yarn build && node scripts/stream.js",
|
||||||
"dev": "vite build --watch",
|
"dev": "vite build --watch",
|
||||||
@@ -65,7 +65,6 @@
|
|||||||
"@types/node": "^18.15.11",
|
"@types/node": "^18.15.11",
|
||||||
"@types/offscreencanvas": "^2019.6.4",
|
"@types/offscreencanvas": "^2019.6.4",
|
||||||
"construct-style-sheets-polyfill": "^3.1.0",
|
"construct-style-sheets-polyfill": "^3.1.0",
|
||||||
"cross-env": "^5.2.0",
|
|
||||||
"fast-mhtml": "^1.1.9",
|
"fast-mhtml": "^1.1.9",
|
||||||
"identity-obj-proxy": "^3.0.0",
|
"identity-obj-proxy": "^3.0.0",
|
||||||
"ignore-styles": "^5.0.1",
|
"ignore-styles": "^5.0.1",
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
"@types/react-dom": "^18.0.6",
|
"@types/react-dom": "^18.0.6",
|
||||||
"@types/webextension-polyfill": "^0.9.1",
|
"@types/webextension-polyfill": "^0.9.1",
|
||||||
"@vitejs/plugin-react": "^4.2.1",
|
"@vitejs/plugin-react": "^4.2.1",
|
||||||
"cross-env": "^7.0.3",
|
|
||||||
"type-fest": "^2.19.0",
|
"type-fest": "^2.19.0",
|
||||||
"vite": "^5.2.8",
|
"vite": "^5.2.8",
|
||||||
"vite-plugin-web-extension": "^4.1.3",
|
"vite-plugin-web-extension": "^4.1.3",
|
||||||
|
|||||||
30
yarn.lock
30
yarn.lock
@@ -4740,13 +4740,6 @@ create-require@^1.1.0:
|
|||||||
resolved "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz"
|
resolved "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz"
|
||||||
integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==
|
integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==
|
||||||
|
|
||||||
cross-env@^5.2.0:
|
|
||||||
version "5.2.1"
|
|
||||||
resolved "https://registry.npmjs.org/cross-env/-/cross-env-5.2.1.tgz"
|
|
||||||
integrity sha512-1yHhtcfAd1r4nwQgknowuUNfIT9E8dOMMspC36g45dN+iD1blloi7xp8X/xAIDnjHWyt1uQ8PHk2fkNaym7soQ==
|
|
||||||
dependencies:
|
|
||||||
cross-spawn "^6.0.5"
|
|
||||||
|
|
||||||
cross-env@^7.0.3:
|
cross-env@^7.0.3:
|
||||||
version "7.0.3"
|
version "7.0.3"
|
||||||
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-7.0.3.tgz#865264b29677dc015ba8418918965dd232fc54cf"
|
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-7.0.3.tgz#865264b29677dc015ba8418918965dd232fc54cf"
|
||||||
@@ -4777,17 +4770,6 @@ cross-spawn@^5.1.0:
|
|||||||
shebang-command "^1.2.0"
|
shebang-command "^1.2.0"
|
||||||
which "^1.2.9"
|
which "^1.2.9"
|
||||||
|
|
||||||
cross-spawn@^6.0.5:
|
|
||||||
version "6.0.5"
|
|
||||||
resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz"
|
|
||||||
integrity sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==
|
|
||||||
dependencies:
|
|
||||||
nice-try "^1.0.4"
|
|
||||||
path-key "^2.0.1"
|
|
||||||
semver "^5.5.0"
|
|
||||||
shebang-command "^1.2.0"
|
|
||||||
which "^1.2.9"
|
|
||||||
|
|
||||||
cross-spawn@^7.0.1, cross-spawn@^7.0.2, cross-spawn@^7.0.3:
|
cross-spawn@^7.0.1, cross-spawn@^7.0.2, cross-spawn@^7.0.3:
|
||||||
version "7.0.3"
|
version "7.0.3"
|
||||||
resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz"
|
resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz"
|
||||||
@@ -8518,11 +8500,6 @@ netmask@^2.0.2:
|
|||||||
resolved "https://registry.yarnpkg.com/netmask/-/netmask-2.0.2.tgz#8b01a07644065d536383835823bc52004ebac5e7"
|
resolved "https://registry.yarnpkg.com/netmask/-/netmask-2.0.2.tgz#8b01a07644065d536383835823bc52004ebac5e7"
|
||||||
integrity sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==
|
integrity sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==
|
||||||
|
|
||||||
nice-try@^1.0.4:
|
|
||||||
version "1.0.5"
|
|
||||||
resolved "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz"
|
|
||||||
integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==
|
|
||||||
|
|
||||||
no-case@^3.0.4:
|
no-case@^3.0.4:
|
||||||
version "3.0.4"
|
version "3.0.4"
|
||||||
resolved "https://registry.yarnpkg.com/no-case/-/no-case-3.0.4.tgz#d361fd5c9800f558551a8369fc0dcd4662b6124d"
|
resolved "https://registry.yarnpkg.com/no-case/-/no-case-3.0.4.tgz#d361fd5c9800f558551a8369fc0dcd4662b6124d"
|
||||||
@@ -8941,11 +8918,6 @@ path-is-absolute@^1.0.0:
|
|||||||
resolved "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz"
|
resolved "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz"
|
||||||
integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18=
|
integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18=
|
||||||
|
|
||||||
path-key@^2.0.1:
|
|
||||||
version "2.0.1"
|
|
||||||
resolved "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz"
|
|
||||||
integrity sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=
|
|
||||||
|
|
||||||
path-key@^3.0.0, path-key@^3.1.0:
|
path-key@^3.0.0, path-key@^3.1.0:
|
||||||
version "3.1.1"
|
version "3.1.1"
|
||||||
resolved "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz"
|
resolved "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz"
|
||||||
@@ -9850,7 +9822,7 @@ semver-match@0.1.1:
|
|||||||
dependencies:
|
dependencies:
|
||||||
semver "^5.1.0"
|
semver "^5.1.0"
|
||||||
|
|
||||||
"semver@2 || 3 || 4 || 5", semver@^5.1.0, semver@^5.5.0:
|
"semver@2 || 3 || 4 || 5", semver@^5.1.0:
|
||||||
version "5.7.1"
|
version "5.7.1"
|
||||||
resolved "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz"
|
resolved "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz"
|
||||||
integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==
|
integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==
|
||||||
|
|||||||
Reference in New Issue
Block a user