Skip to content

Commit

Permalink
test(#136): try to reproduce the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Aug 29, 2024
1 parent 757ffa9 commit f12832a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/fixtures/export-default-as-named-decl.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// https://github.com/un-ts/eslint-plugin-import-x/issues/136
// Vite / Rollup might mangle exported functions' original name

function foo() {}

export { foo as default }
5 changes: 5 additions & 0 deletions test/rules/no-rename-default.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ ruleTester.run('no-rename-default', rule, {
`import _ from './no-rename-default/anonymous-class'`,
`import _ from './no-rename-default/anonymous-object'`,
`import _ from './no-rename-default/anonymous-primitive'`,

// https://github.com/un-ts/eslint-plugin-import-x/issues/136
test({
code: '/** #136 */ import exportDefaultStringAndNamed from "./export-default-as-named-decl"',
}),
],
invalid: [],
})
Expand Down

0 comments on commit f12832a

Please sign in to comment.