test(exportNested): better test for nested export
MODIFY
test/test-import.js
test/test-import.js
@@ -36,7 +36,7 @@ test('import', async t => {
transforms,
});
- const exportNested = `(export default 123)`;
+ const exportNested = `{ void 0; export default null; }`;
t.throws(
() => evaluateModule(exportNested),
SyntaxError,

test(exportNested): better test for nested export