Skip to content

Commit 9c3a8da

Browse files
committed
Test with Node.js 25
1 parent 14afd0b commit 9c3a8da

File tree

6 files changed

+96
-3
lines changed

6 files changed

+96
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
node-version: [^18.18, ^20.8, ^22, ^24]
23+
node-version: [^18.18, ^20.8, ^22, ^24, ^25]
2424
os: [ubuntu-latest, windows-latest, macos-latest]
2525
steps:
2626
- uses: actions/checkout@v4

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
"type": "module",
4141
"engines": {
42-
"node": "^18.18 || ^20.8 || ^22 || ^23 || >=24"
42+
"node": "^18.18 || ^20.8 || ^22 || ^23 || ^24 || >=25"
4343
},
4444
"scripts": {
4545
"test": "./scripts/test.sh"

test/external-assertions/snapshots/test.js.md

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,3 +468,95 @@ Generated by [AVA](https://avajs.dev).
468468
─␊
469469
470470
2 tests failed`
471+
472+
## node assertion (node.js v^25)
473+
474+
> Snapshot 1
475+
476+
`␊
477+
✘ [fail]: test Assertion failed␊
478+
✘ [fail]: test async Assertion failed␊
479+
─␊
480+
481+
test␊
482+
483+
Assertion failed: ␊
484+
485+
false == true␊
486+
487+
AssertionError [ERR_ASSERTION]: false == true␊
488+
at ---␊
489+
at ---␊
490+
at ---␊
491+
at ---␊
492+
at ---␊
493+
at ---␊
494+
at ---␊
495+
at ---␊
496+
at ---␊
497+
498+
499+
500+
test async␊
501+
502+
Assertion failed: ␊
503+
504+
false == true␊
505+
506+
AssertionError [ERR_ASSERTION]: false == true␊
507+
at ---␊
508+
at ---␊
509+
510+
─␊
511+
512+
2 tests failed`
513+
514+
## expect error (node.js v^25)
515+
516+
> Snapshot 1
517+
518+
`␊
519+
✘ [fail]: test Assertion failed␊
520+
✘ [fail]: test async Assertion failed␊
521+
─␊
522+
523+
test␊
524+
525+
Assertion failed: ␊
526+
527+
expect(received).toBeTruthy()␊
528+
529+
Received: false␊
530+
531+
Error: expect(received).toBeTruthy()␊
532+
533+
Received: false␊
534+
at ---␊
535+
at ---␊
536+
at ---␊
537+
at ---␊
538+
at ---␊
539+
at ---␊
540+
at ---␊
541+
at ---␊
542+
at ---␊
543+
544+
545+
546+
test async␊
547+
548+
Assertion failed: ␊
549+
550+
expect(received).toBeTruthy()␊
551+
552+
Received: false␊
553+
554+
Error: expect(received).toBeTruthy()␊
555+
556+
Received: false␊
557+
at ---␊
558+
at ---␊
559+
560+
─␊
561+
562+
2 tests failed`
17 Bytes
Binary file not shown.

test/external-assertions/test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ for (const [label, selector] of Object.entries({
1919
'^20.11': /^20\.(1[1-9]\.|[2-9]\d\.)/,
2020
'^22': /^22\./,
2121
'^24': /^24\./,
22+
'^25': /^25\./,
2223
})) {
2324
// Tests need to be declared for all versions, so that snapshots can be
2425
// updated by running `npx test-ava -u test/external-assertions/test.js` for

0 commit comments

Comments
 (0)