Skip to content

Commit 7a50870

Browse files
eoghanmurrayjxiwang
authored andcommitted
Assuming all jest should have been removed in rrweb-io#1033 (rrweb-io#1511)
* all references to jest should have been removed in rrweb-io#1033 * clarify that `cross-env` is used to ensure that environmental variables get applied on Windows (previous usage of cross-env was removed in rrweb-io#1033)
1 parent 3ef1e70 commit 7a50870

File tree

6 files changed

+12
-39
lines changed

6 files changed

+12
-39
lines changed

.changeset/last-jest-to-vitest.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"@typescript-eslint/parser": "^5.62.0",
2929
"browserslist": "^4.22.1",
3030
"concurrently": "^7.1.0",
31+
"cross-env": "^7.0.3",
3132
"esbuild-plugin-umd-wrapper": "^2.0.0",
3233
"eslint": "^8.53.0",
3334
"eslint-plugin-compat": "^4.2.0",

packages/rrweb-snapshot/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
"scripts": {
66
"prepare": "npm run prepack",
77
"prepack": "npm run build",
8-
"retest": "jest",
9-
"test": "vitest run",
8+
"retest": "vitest run",
9+
"test": "yarn build && vitest run",
1010
"test:watch": "vitest watch",
11-
"test:update": "vitest run --update",
11+
"retest:update": "vitest run --update",
12+
"test:update": "yarn build && vitest run --update",
1213
"dev": "vite build --watch",
1314
"build": "yarn check-types && vite build",
1415
"check-types": "tsc --noEmit",
@@ -55,7 +56,6 @@
5556
"@types/jsdom": "^20.0.0",
5657
"@types/node": "^18.15.11",
5758
"@types/puppeteer": "^5.4.4",
58-
"cross-env": "^5.2.0",
5959
"puppeteer": "^17.1.3",
6060
"ts-node": "^7.0.1",
6161
"tslib": "^1.9.3",

packages/rrweb/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
"prepack": "npm run build",
88
"retest": "vitest run --exclude test/benchmark",
99
"build-and-test": "yarn build && yarn retest",
10-
"test:headless": "PUPPETEER_HEADLESS=true yarn build-and-test",
11-
"test:headful": "PUPPETEER_HEADLESS=false yarn build-and-test",
10+
"test:headless": "cross-env PUPPETEER_HEADLESS=true yarn build-and-test",
11+
"test:headful": "cross-env PUPPETEER_HEADLESS=false yarn build-and-test",
1212
"test": "yarn test:headless",
13-
"test:watch": "yarn build && PUPPETEER_HEADLESS=true yarn vitest --exclude test/benchmark",
13+
"test:watch": "yarn build && cross-env PUPPETEER_HEADLESS=true yarn vitest --exclude test/benchmark",
1414
"test:update": "yarn test:headless --update",
15-
"retest:update": "PUPPETEER_HEADLESS=true yarn retest --update",
15+
"retest:update": "cross-env PUPPETEER_HEADLESS=true yarn retest --update",
1616
"repl": "yarn build && node scripts/repl.js",
1717
"live-stream": "yarn build && node scripts/stream.js",
1818
"dev": "vite build --watch",
@@ -65,7 +65,6 @@
6565
"@types/node": "^18.15.11",
6666
"@types/offscreencanvas": "^2019.6.4",
6767
"construct-style-sheets-polyfill": "^3.1.0",
68-
"cross-env": "^5.2.0",
6968
"fast-mhtml": "^1.1.9",
7069
"identity-obj-proxy": "^3.0.0",
7170
"ignore-styles": "^5.0.1",

packages/web-extension/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"@types/react-dom": "^18.0.6",
2323
"@types/webextension-polyfill": "^0.9.1",
2424
"@vitejs/plugin-react": "^4.2.1",
25-
"cross-env": "^7.0.3",
2625
"type-fest": "^2.19.0",
2726
"vite": "^5.2.8",
2827
"vite-plugin-web-extension": "^4.1.3",

yarn.lock

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4740,13 +4740,6 @@ create-require@^1.1.0:
47404740
resolved "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz"
47414741
integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==
47424742

4743-
cross-env@^5.2.0:
4744-
version "5.2.1"
4745-
resolved "https://registry.npmjs.org/cross-env/-/cross-env-5.2.1.tgz"
4746-
integrity sha512-1yHhtcfAd1r4nwQgknowuUNfIT9E8dOMMspC36g45dN+iD1blloi7xp8X/xAIDnjHWyt1uQ8PHk2fkNaym7soQ==
4747-
dependencies:
4748-
cross-spawn "^6.0.5"
4749-
47504743
cross-env@^7.0.3:
47514744
version "7.0.3"
47524745
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-7.0.3.tgz#865264b29677dc015ba8418918965dd232fc54cf"
@@ -4777,17 +4770,6 @@ cross-spawn@^5.1.0:
47774770
shebang-command "^1.2.0"
47784771
which "^1.2.9"
47794772

4780-
cross-spawn@^6.0.5:
4781-
version "6.0.5"
4782-
resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz"
4783-
integrity sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==
4784-
dependencies:
4785-
nice-try "^1.0.4"
4786-
path-key "^2.0.1"
4787-
semver "^5.5.0"
4788-
shebang-command "^1.2.0"
4789-
which "^1.2.9"
4790-
47914773
cross-spawn@^7.0.1, cross-spawn@^7.0.2, cross-spawn@^7.0.3:
47924774
version "7.0.3"
47934775
resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz"
@@ -8518,11 +8500,6 @@ netmask@^2.0.2:
85188500
resolved "https://registry.yarnpkg.com/netmask/-/netmask-2.0.2.tgz#8b01a07644065d536383835823bc52004ebac5e7"
85198501
integrity sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==
85208502

8521-
nice-try@^1.0.4:
8522-
version "1.0.5"
8523-
resolved "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz"
8524-
integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==
8525-
85268503
no-case@^3.0.4:
85278504
version "3.0.4"
85288505
resolved "https://registry.yarnpkg.com/no-case/-/no-case-3.0.4.tgz#d361fd5c9800f558551a8369fc0dcd4662b6124d"
@@ -8941,11 +8918,6 @@ path-is-absolute@^1.0.0:
89418918
resolved "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz"
89428919
integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18=
89438920

8944-
path-key@^2.0.1:
8945-
version "2.0.1"
8946-
resolved "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz"
8947-
integrity sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=
8948-
89498921
path-key@^3.0.0, path-key@^3.1.0:
89508922
version "3.1.1"
89518923
resolved "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz"
@@ -9850,7 +9822,7 @@ [email protected]:
98509822
dependencies:
98519823
semver "^5.1.0"
98529824

9853-
"semver@2 || 3 || 4 || 5", semver@^5.1.0, semver@^5.5.0:
9825+
"semver@2 || 3 || 4 || 5", semver@^5.1.0:
98549826
version "5.7.1"
98559827
resolved "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz"
98569828
integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==

0 commit comments

Comments
 (0)