Skip to content

Releases: FormidableLabs/jest-next-dynamic

v1.0.1

06 Nov 23:21
Compare
Choose a tag to compare

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

22 Feb 10:12
Compare
Choose a tag to compare

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

12 Dec 18:05
Compare
Choose a tag to compare

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

11 Dec 09:32
Compare
Choose a tag to compare

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

11 Dec 09:31
Compare
Choose a tag to compare

Changed

  • Only include the entry point, index.js, in the published npm package.

v0.1.0

11 Dec 09:30
Compare
Choose a tag to compare

Initial release.