Skip to content

Commit 1922898

Browse files
committed
fixup! Support disabling of the Babel pipeline
1 parent 10625bf commit 1922898

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ test('doesn\'t set NODE_ENV when it is set', t => {
828828
test('skips test file compilation when babel=false and compileEnhancements=false', t => {
829829
execCli(['import.js'], {dirname: 'fixture/no-babel-compilation'}, (err, stdout, stderr) => {
830830
t.ok(err);
831-
t.match(stderr, /SyntaxError: Unexpected token import/);
831+
t.match(stderr, /SyntaxError: Unexpected (reserved word|token import)/);
832832
t.end();
833833
});
834834
});
@@ -852,7 +852,7 @@ test('no power-assert when babel=false and compileEnhancements=false', t => {
852852
test('skips stage-4 transform when babel=false and compileEnhancements=true', t => {
853853
execCli(['import.js'], {dirname: 'fixture/just-enhancement-compilation'}, (err, stdout, stderr) => {
854854
t.ok(err);
855-
t.match(stderr, /SyntaxError: Unexpected token import/);
855+
t.match(stderr, /SyntaxError: Unexpected (reserved word|token import)/);
856856
t.end();
857857
});
858858
});

0 commit comments

Comments
 (0)