Skip to content

Commit d67228e

Browse files
committed
feat: add support for Node.js v22-23
BREAKING CHANGE: Node.js v16 is not supported
1 parent 911b243 commit d67228e

File tree

13 files changed

+1239
-1252
lines changed

13 files changed

+1239
-1252
lines changed

Diff for: .github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
node-version: [18, 20, "latest"]
13+
node-version: [18, 20, 22, "latest"]
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v3
17-
- uses: actions/setup-node@v3
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
1818
with:
1919
node-version: ${{ matrix.node-version }}
2020
- run: npm ci

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ You can easily customize the Puppeteer instance used in your tests by modifying
180180
```js
181181
module.exports = {
182182
launch: {
183-
product: "firefox",
183+
browser: "firefox",
184184
headless: process.env.HEADLESS !== "false",
185185
},
186186
};
@@ -284,7 +284,7 @@ You can further extend this configuration to connect to a remote instance of Chr
284284

285285
Jest-Puppeteer exposes several global objects and methods to facilitate test writing:
286286

287-
- **`global.browser`**: Provides access to the Puppeteer [Browser](https://pptr.dev/#?product=Puppeteer&version=v13.0.0&show=api-class-browser) instance.
287+
- **`global.browser`**: Provides access to the Puppeteer [Browser](https://pptr.dev/api/puppeteer.browser/) instance.
288288

289289
Example:
290290

@@ -293,15 +293,15 @@ Jest-Puppeteer exposes several global objects and methods to facilitate test wri
293293
await page.goto("https://example.com");
294294
```
295295

296-
- **`global.page`**: The default Puppeteer [Page](https://pptr.dev/#?product=Puppeteer&version=v13.0.0&show=api-class-page) object, automatically created and available in tests.
296+
- **`global.page`**: The default Puppeteer [Page](https://pptr.dev/api/puppeteer.page/) object, automatically created and available in tests.
297297

298298
Example:
299299

300300
```js
301301
await page.type("#input", "Hello World");
302302
```
303303

304-
- **`global.context`**: Gives access to the [browser context](https://pptr.dev/#?product=Puppeteer&version=v13.0.0&show=api-class-browsercontext), useful for isolating tests in separate contexts.
304+
- **`global.context`**: Gives access to the [browser context](https://pptr.dev/api/puppeteer.browsercontext/), useful for isolating tests in separate contexts.
305305

306306
- **`global.expect(page)`**: The enhanced `expect` API provided by `expect-puppeteer`. You can use this to make assertions on the Puppeteer `page`.
307307

0 commit comments

Comments
 (0)