- Notifications
You must be signed in to change notification settings - Fork0
testing library for nextjs dynamic import
License
NotificationsYou must be signed in to change notification settings
DavidYang2149/jest-next-dynamic-ts
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Inspired byjest-next-dynamic.
Added TypeScript based on jest-next-dynamic.
GitHub:jest-next-dynamic-ts
npm:jest-next-dynamic-ts
npm install -D jest-next-dynamic-ts
// This will mock `next/dynamic`, so make sure to import it before any of your// components.importpreloadAllfrom"jest-next-dynamic-ts";// This component can have dynamic imports anywhere in its rendered tree,// including nested dynamic imports.importSomeComponentfrom"./SomeComponent";beforeAll(async()=>{awaitpreloadAll();});// Your tests here!
About
testing library for nextjs dynamic import
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.