From c78dccb4c4467aea9f5c026bd33d1700058fd02e Mon Sep 17 00:00:00 2001 From: 59naga Date: Mon, 16 Jul 2018 16:16:45 +0900 Subject: [PATCH] test: add replication test of #59 --- test/fixtures/issue059.js | 1 + test/spec.js | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 test/fixtures/issue059.js diff --git a/test/fixtures/issue059.js b/test/fixtures/issue059.js new file mode 100644 index 0000000..9d9c49a --- /dev/null +++ b/test/fixtures/issue059.js @@ -0,0 +1 @@ +export const other = 'other-entry' diff --git a/test/spec.js b/test/spec.js index 22d1eca..44bc872 100644 --- a/test/spec.js +++ b/test/spec.js @@ -113,6 +113,20 @@ module.exports = [ exports: 'this is file' } }, + { + name: 'not export default using transform-export-extensions and wildcard syntax (#59)', + code: "export * from './fixtures/issue059.js'; export default 'default-entry'", + expected: { + module: { + other: 'other-entry', + default: 'default-entry' + }, + exports: { + other: 'other-entry', + default: 'default-entry' + } + } + }, { name: 'export default and named declarations (#30)', code: 'const foo = 1;const BAR = 2;export { foo as default, BAR }',