-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error when importing from ESM auto entrypoint (#422)
* Fix error when importing from ESM auto entrypoint * Skip full lib check in TypeScript verification happy-dom has some issues in their typings unrelated to what's used in our project Per documentation, this also "can save time during compilation at the expense of type-system accuracy" See: https://www.typescriptlang.org/tsconfig#skipLibCheck
- Loading branch information
Showing
6 changed files
with
106 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.
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
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
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,23 @@ | ||
/* eslint-disable import/no-unresolved */ | ||
|
||
import { describe, before, after, it } from 'node:test'; | ||
import { GlobalRegistrator } from '@happy-dom/global-registrator'; | ||
|
||
describe('imports', () => { | ||
before(() => { | ||
GlobalRegistrator.register(); | ||
}); | ||
|
||
after(() => { | ||
GlobalRegistrator.unregister(); | ||
}); | ||
|
||
it('imports from all entrypoints without errors', async () => { | ||
await Promise.all([ | ||
// @ts-ignore | ||
import('@18f/identity-design-system'), | ||
// @ts-ignore | ||
import('@18f/identity-design-system/auto'), | ||
]); | ||
}); | ||
}); |
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