Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

testing library for nextjs dynamic import

License

NotificationsYou must be signed in to change notification settings

DavidYang2149/jest-next-dynamic-ts

Repository files navigation

Inspired byjest-next-dynamic.

Added TypeScript based on jest-next-dynamic.

GitHub:jest-next-dynamic-ts
npm:jest-next-dynamic-ts

📚 Install dependencies

npm install -D jest-next-dynamic-ts

🧪 Usage

// 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

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp