Skip to content

Commit 64423e9

Browse files
committed
[Tests] add passing test for export-star
Closes #2093
1 parent 58fe766 commit 64423e9

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export function func() {
2+
console.log('Hello world');
3+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './feature';

tests/src/rules/export.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,18 @@ context('TypeScript', function () {
245245
export {Bar as default};
246246
`,
247247
}, parserConfig)),
248+
249+
test({
250+
...parserConfig,
251+
code: `
252+
export * from './module';
253+
`,
254+
filename: testFilePath('export-star-4/index.js'),
255+
settings: {
256+
...parserConfig.settings,
257+
'import/extensions': ['.js', '.ts', '.jsx'],
258+
},
259+
}),
248260
],
249261
invalid: [
250262
// type/value name clash

0 commit comments

Comments
 (0)