Releases: FormidableLabs/jest-next-dynamic
Releases · FormidableLabs/jest-next-dynamic
v1.0.1
Changed
- Compatibility with newer versions of Next.js v9 that move
LoadableComponent.preload
to LoadableComponent.render.preload
. We now check for both.
v1.0.0
Added
- Mock
next-server/dynamic
as well to support Next 8.
Changed
- Use
next/babel
in tests to more accurately reflect how Next.js users likely run tests.
- Return module object with only
default
replaced.
- Bump dependencies.
v0.3.0
Changes
- Better tracking of queued component initializers. (#2)
- Set
virtual: true
on the next/dynamic
mock for easier usage in Jest config presets, where packages might not necessarily have Next.js installed. (#2)
v0.2.0
Changed
- Instead of calling
preload
right away as each dynamic component is defined, a function that calls preload
is enqueued. Calling the exported preloadAll
function will cause these functions be run. (#1)
v0.1.1
Changed
- Only include the entry point,
index.js
, in the published npm package.