Skip to content

Commit

Permalink
chore: supress experimental warnings in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Sep 13, 2021
1 parent a0bf671 commit 50766cc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions e2e/__tests__/nativeEsm.test.ts
Expand Up @@ -24,7 +24,7 @@ test('test config is without transform', () => {
onNodeVersions('^12.16.0 || >=13.7.0', () => {
test('runs test with native ESM', () => {
const {exitCode, stderr, stdout} = runJest(DIR, ['native-esm.test.js'], {
nodeOptions: '--experimental-vm-modules',
nodeOptions: '--experimental-vm-modules --no-warnings',
});

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

const {summary} = extractSummary(stderr);
Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/nativeEsmTypescript.test.ts
Expand Up @@ -15,7 +15,7 @@ const DIR = resolve(__dirname, '../native-esm-typescript');
onNodeVersions('^12.16.0 || >=13.7.0', () => {
test('runs TS test with native ESM', () => {
const {exitCode, json} = runJest(DIR, [], {
nodeOptions: '--experimental-vm-modules',
nodeOptions: '--experimental-vm-modules --no-warnings',
});

expect(exitCode).toBe(0);
Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/resolveConditions.test.ts
Expand Up @@ -22,7 +22,7 @@ onNodeVersions('^12.16.0 || >=13.7.0', () => {
// run multiple times to ensure there are no caching errors
for (let i = 0; i < 5; i++) {
const {exitCode} = runJest(dir, [], {
nodeOptions: '--experimental-vm-modules',
nodeOptions: '--experimental-vm-modules --no-warnings',
});
try {
expect(exitCode).toBe(0);
Expand Down
8 changes: 4 additions & 4 deletions e2e/__tests__/transform.test.ts
Expand Up @@ -294,7 +294,7 @@ onNodeVersions('^12.17.0 || >=13.2.0', () => {

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

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

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

expect(stderr).toMatch(/PASS/);
Expand Down

0 comments on commit 50766cc

Please sign in to comment.