Skip to content

Commit a785b90

Browse files
authored
chore: normalize error in snapshot between node versions (#15907)
1 parent d9e41ff commit a785b90

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.github/workflows/test-nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Use Node.js nightly build
2424
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2525
with:
26-
node-version: 23-nightly
26+
node-version: 26-nightly
2727
cache: yarn
2828
- name: install
2929
run: yarn --immutable
@@ -57,7 +57,7 @@ jobs:
5757
- name: Use Node.js nightly build
5858
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
5959
with:
60-
node-version: 23-nightly
60+
node-version: 26-nightly
6161
cache: yarn
6262
- name: install
6363
run: yarn --immutable

e2e/__tests__/__snapshots__/testFailingJasmine.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ FAIL __tests__/worksWithConcurrentMode.test.js
4646
15 | });
4747
16 |
4848
49-
at Function.failing (../../packages/jest-jasmine2/build/index.js:311:17)
49+
at concurrentFn.failing (../../packages/jest-jasmine2/build/index.js:311:17)
5050
at Suite.failing (__tests__/worksWithConcurrentMode.test.js:13:17)
5151
at Object.describe (__tests__/worksWithConcurrentMode.test.js:8:1)
5252
@@ -80,7 +80,7 @@ FAIL __tests__/worksWithConcurrentOnlyMode.test.js
8080
15 | });
8181
16 |
8282
83-
at Function.failing (../../packages/jest-jasmine2/build/index.js:311:17)
83+
at concurrentFn.failing (../../packages/jest-jasmine2/build/index.js:311:17)
8484
at Suite.failing (__tests__/worksWithConcurrentOnlyMode.test.js:13:22)
8585
at Object.describe (__tests__/worksWithConcurrentOnlyMode.test.js:8:1)
8686

e2e/__tests__/testFailingJasmine.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,10 @@ test('throws an error about unsupported modifier', () => {
1818
const result = runJest(dir);
1919
expect(result.exitCode).toBe(1);
2020
const {rest} = extractSortedSummary(result.stderr);
21-
expect(rest).toMatchSnapshot();
21+
expect(
22+
rest.replaceAll(
23+
'at Function.failing (../../packages/jest-jasmine2/',
24+
'at concurrentFn.failing (../../packages/jest-jasmine2/',
25+
),
26+
).toMatchSnapshot();
2227
});

0 commit comments

Comments
 (0)