Skip to content

Commit 3bce801

Browse files
committed
Fix tests
1 parent c9a186f commit 3bce801

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

src/helpers/normalize.test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,16 @@ const REPLACEMENTS = [
2626
[/^([ \t]+)at [^\r\n]+\{[^]+/gmu, ''],
2727
// Node 14 prints this specific error differently
2828
[/[^]*uid" (property )?must be[^]*/gu, 'invalid options.uid'],
29+
// Node >=23 prints this warning message with Gulp
30+
[/^.*ExperimentalWarning: CommonJS module.*$/gmu, ''],
31+
[/^.*loading ES Module.*$/gmu, ''],
32+
[/^.*--trace-warnings.*$/gmu, ''],
2933
// Stack traces
3034
[/^([ \t]+)at [^\r\n]+$/gmu, '$1at STACK TRACE'],
3135
[/(([ \t]+)at STACK TRACE(\r?\n)?)+/gu, '$2at STACK TRACE$3'],
3236
[/node:.*:\d+/gu, 'node:module'],
3337
// Gulp shows file content that triggered an error
34-
[/[^]+Error:/gu, ''],
38+
[/[^]*Error:/gu, ''],
3539
// Gulp warning
3640
[/.*DEP0097.*/gu, ''],
3741
[/.*node --trace-deprecation.*/gu, ''],

src/snapshots/build/src/input.test.js.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Generated by [AVA](https://avajs.dev).
3232
3333
{
3434
exitCode: 1,
35-
stderr: `Error: The command must be a non-empty string: true␊
35+
stderr: `The command must be a non-empty string: true␊
3636
at STACK TRACE`,
3737
stdout: '',
3838
}
@@ -43,7 +43,7 @@ Generated by [AVA](https://avajs.dev).
4343
4444
{
4545
exitCode: 1,
46-
stderr: `Error: The command must be a non-empty string: ␊
46+
stderr: `The command must be a non-empty string: ␊
4747
at STACK TRACE`,
4848
stdout: '',
4949
}
-20 Bytes
Binary file not shown.

src/snapshots/build/src/options/main.test.js.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Generated by [AVA](https://avajs.dev).
9191
9292
{
9393
exitCode: 1,
94-
stderr: `Error: Options must be a plain object: false␊
94+
stderr: `Options must be a plain object: false␊
9595
at STACK TRACE`,
9696
stdout: '',
9797
}
@@ -152,7 +152,7 @@ Generated by [AVA](https://avajs.dev).
152152
153153
{
154154
exitCode: 1,
155-
stderr: `Error: Option 'result' 'invalid' must be one of: save, replace␊
155+
stderr: `Option 'result' 'invalid' must be one of: save, replace␊
156156
at STACK TRACE`,
157157
stdout: '',
158158
}
@@ -163,7 +163,7 @@ Generated by [AVA](https://avajs.dev).
163163
164164
{
165165
exitCode: 1,
166-
stderr: `Error: Option 'from' 'invalid' must be one of: stdout, stderr, all␊
166+
stderr: `Option 'from' 'invalid' must be one of: stdout, stderr, all␊
167167
at STACK TRACE`,
168168
stdout: '',
169169
}
-31 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)