Skip to content

Commit 41980ee

Browse files
replaceAll regex → string
1 parent e9fcef0 commit 41980ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/es-module/test-esm-experimental-warnings.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('ESM: warn for obsolete hooks provided', { concurrency: true }, () => {
3030
[/specifier resolution/, '--experimental-specifier-resolution=node'],
3131
]
3232
) {
33-
it(`should print for ${experiment.toString().replaceAll(/\//g, '')}`, async () => {
33+
it(`should print for ${experiment.toString().replaceAll('/', '')}`, async () => {
3434
const { code, signal, stderr } = await spawnPromisified(execPath, [
3535
arg,
3636
'--input-type=module',

0 commit comments

Comments
 (0)