Skip to content

Commit 50766cc

Browse files
committed
chore: supress experimental warnings in tests
1 parent a0bf671 commit 50766cc

4 files changed

+8
-8
lines changed

e2e/__tests__/nativeEsm.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ test('test config is without transform', () => {
2424
onNodeVersions('^12.16.0 || >=13.7.0', () => {
2525
test('runs test with native ESM', () => {
2626
const {exitCode, stderr, stdout} = runJest(DIR, ['native-esm.test.js'], {
27-
nodeOptions: '--experimental-vm-modules',
27+
nodeOptions: '--experimental-vm-modules --no-warnings',
2828
});
2929

3030
const {summary} = extractSummary(stderr);
@@ -41,7 +41,7 @@ onNodeVersions('>=14.3.0', () => {
4141
const {exitCode, stderr, stdout} = runJest(
4242
DIR,
4343
['native-esm.tla.test.js'],
44-
{nodeOptions: '--experimental-vm-modules'},
44+
{nodeOptions: '--experimental-vm-modules --no-warnings'},
4545
);
4646

4747
const {summary} = extractSummary(stderr);

e2e/__tests__/nativeEsmTypescript.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const DIR = resolve(__dirname, '../native-esm-typescript');
1515
onNodeVersions('^12.16.0 || >=13.7.0', () => {
1616
test('runs TS test with native ESM', () => {
1717
const {exitCode, json} = runJest(DIR, [], {
18-
nodeOptions: '--experimental-vm-modules',
18+
nodeOptions: '--experimental-vm-modules --no-warnings',
1919
});
2020

2121
expect(exitCode).toBe(0);

e2e/__tests__/resolveConditions.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ onNodeVersions('^12.16.0 || >=13.7.0', () => {
2222
// run multiple times to ensure there are no caching errors
2323
for (let i = 0; i < 5; i++) {
2424
const {exitCode} = runJest(dir, [], {
25-
nodeOptions: '--experimental-vm-modules',
25+
nodeOptions: '--experimental-vm-modules --no-warnings',
2626
});
2727
try {
2828
expect(exitCode).toBe(0);

e2e/__tests__/transform.test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ onNodeVersions('^12.17.0 || >=13.2.0', () => {
294294

295295
it('should transform with transformer with only async transforms', () => {
296296
const {json, stderr} = runWithJson(dir, ['--no-cache'], {
297-
nodeOptions: '--experimental-vm-modules',
297+
nodeOptions: '--experimental-vm-modules --no-warnings',
298298
});
299299
expect(stderr).toMatch(/PASS/);
300300
expect(json.success).toBe(true);
@@ -311,7 +311,7 @@ onNodeVersions('^12.17.0 || >=13.2.0', () => {
311311

312312
it("should use babel-jest's async transforms", () => {
313313
const {json, stderr} = runWithJson(dir, ['--no-cache'], {
314-
nodeOptions: '--experimental-vm-modules',
314+
nodeOptions: '--experimental-vm-modules --no-warnings',
315315
});
316316
expect(stderr).toMatch(/PASS/);
317317
expect(json.success).toBe(true);
@@ -323,7 +323,7 @@ onNodeVersions('^12.17.0 || >=13.2.0', () => {
323323
const dir = path.resolve(__dirname, '../transform/transform-esm-runner');
324324
test('runs test with native ESM', () => {
325325
const {json, stderr} = runWithJson(dir, ['--no-cache'], {
326-
nodeOptions: '--experimental-vm-modules',
326+
nodeOptions: '--experimental-vm-modules --no-warnings',
327327
});
328328

329329
expect(stderr).toMatch(/PASS/);
@@ -339,7 +339,7 @@ onNodeVersions('^12.17.0 || >=13.2.0', () => {
339339
);
340340
test('runs test with native ESM', () => {
341341
const {json, stderr} = runWithJson(dir, ['--no-cache'], {
342-
nodeOptions: '--experimental-vm-modules',
342+
nodeOptions: '--experimental-vm-modules --no-warnings',
343343
});
344344

345345
expect(stderr).toMatch(/PASS/);

0 commit comments

Comments
 (0)