This repository has been archived by the owner on Oct 18, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle missing export map entry in ts resolution (#16)
- Loading branch information
1 parent
3709227
commit 4d460dd
Showing
5 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { testSuite, expect } from 'manten'; | ||
import type { NodeApis } from '../../utils/node-with-loader'; | ||
|
||
export default testSuite(async ({ describe }, node: NodeApis) => { | ||
describe('Dependencies', ({ describe }) => { | ||
describe('export map', ({ test }) => { | ||
const output = '{"default":"default export","namedExport":"named export"}'; | ||
|
||
test('Require', async () => { | ||
const nodeProcess = await node.require('package-exports/index.js', { | ||
typescript: true, | ||
}); | ||
expect(nodeProcess.stdout).toBe(output); | ||
}); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters