Skip to content

Commit f25ec90

Browse files
committed
tests: fix failing tests with ws 8.12.1
1 parent 78ac5b7 commit f25ec90

File tree

4 files changed

+1602
-1136
lines changed

4 files changed

+1602
-1136
lines changed

package.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"@swc/jest": "0.2.39",
2828
"@testing-library/dom": "10.4.0",
2929
"@testing-library/react": "16.3.0",
30-
"@types/jest": "29.5.14",
30+
"@types/jest": "30.0.0",
3131
"@types/node": "22.10.1",
3232
"@types/react": "19.0.1",
3333
"@types/react-dom": "19.0.2",
@@ -44,10 +44,10 @@
4444
"eslint-plugin-promise": "7.2.1",
4545
"eslint-plugin-react": "7.37.5",
4646
"html-webpack-plugin": "5.6.3",
47-
"jest": "29.7.0",
48-
"jest-dev-server": "10.1.4",
49-
"jest-environment-jsdom": "29.7.0",
50-
"puppeteer": "23.10.3",
47+
"jest": "30.0.4",
48+
"jest-dev-server": "11.0.0",
49+
"jest-environment-jsdom": "30.0.4",
50+
"puppeteer": "24.13.0",
5151
"react": "19.0.0",
5252
"react-dom": "19.0.0",
5353
"react-router-dom": "7.0.2",
@@ -56,7 +56,7 @@
5656
"tsup": "8.5.0",
5757
"typescript": "5.8.3",
5858
"webpack": "5.100.2",
59-
"webpack-cli": "5.1.4",
59+
"webpack-cli": "6.0.1",
6060
"webpack-dev-server": "5.2.2"
6161
},
6262
"peerDependencies": {
@@ -78,5 +78,8 @@
7878
"@junipero/core": "3.10.5",
7979
"@types/poool-access": "5.18.0"
8080
},
81+
"resolutions": {
82+
"ws": "8.12.0"
83+
},
8184
"packageManager": "yarn@4.9.2"
8285
}

src/Paywall/index.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ describe('<Paywall />', () => {
186186
document.querySelector<HTMLDivElement>('#restricted-content').innerText
187187
);
188188

189-
expect(content).toBe('This sentence should...');
189+
expect(content).toBe('This sentence should be almost...');
190190

191191
await sleep(11);
192192

@@ -200,7 +200,7 @@ describe('<Paywall />', () => {
200200
document.querySelector<HTMLDivElement>('#restricted-content').innerText
201201
);
202202

203-
expect(contentAfterConsent).toBe('This sentence should...');
203+
expect(contentAfterConsent).toBe('This sentence should be almost...');
204204
});
205205

206206
afterAll(async () => {

tests/utils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
export const createBrowser = (opts?: LaunchOptions) =>
1313
puppeteer.launch({
1414
headless: !process.env.HEADFULL,
15-
pipe: true,
15+
dumpio: true,
1616
...opts,
1717
});
1818

0 commit comments

Comments
 (0)