Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@ test('improper use of t.throws from within an async callback will be reported to
});
});

test('babel require hook only applies to the test file', t => {
test('babel require hook only does not apply to source files', t => {
t.plan(3);

execCli('fixture/babel-hook.js', (err, stdout, stderr) => {
t.ok(err);
t.is(err.code, 1);
t.match(stderr, /Unexpected token/);
t.match(stderr, /Unexpected (token|reserved word)/);
t.end();
});
});
Expand Down
2 changes: 1 addition & 1 deletion test/fixture/babel-hook-imported.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.export = async () => {};
export default () => {};