Skip to content

Commit

Permalink
[Tests] add passing test for export-star
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Sep 19, 2021
1 parent 58fe766 commit 64423e9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/files/export-star-4/module/feature.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function func() {
console.log('Hello world');
}
1 change: 1 addition & 0 deletions tests/files/export-star-4/module/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './feature';
12 changes: 12 additions & 0 deletions tests/src/rules/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,18 @@ context('TypeScript', function () {
export {Bar as default};
`,
}, parserConfig)),

test({
...parserConfig,
code: `
export * from './module';
`,
filename: testFilePath('export-star-4/index.js'),
settings: {
...parserConfig.settings,
'import/extensions': ['.js', '.ts', '.jsx'],
},
}),
],
invalid: [
// type/value name clash
Expand Down

0 comments on commit 64423e9

Please sign in to comment.