Skip to content

Releases: abiyasa/marko-jest

v6.0.0

25 Feb 11:23
Compare
Choose a tag to compare
  • Support Marko 4.14.0
  • Breaking: Does not support Marko < 4.12.0

v5.1.0

25 Feb 08:13
Compare
Choose a tag to compare

Minor release, add support to Jest 24

v5.0.0

10 Jan 19:15
Compare
Choose a tag to compare

Major release 🎊

Breaking changes:

  • Remove test sandbox
  • Simplify the API ✨ Simpler way to:
    • initiate Marko component.
    • render and cleanup component
  • TypeScript definition

v4.2.0

24 Aug 13:56
Compare
Choose a tag to compare

New feature:

  • Support Jest 23

v4.1.0

20 Aug 12:01
Compare
Choose a tag to compare

New feature:

Support shallow rendering by using Marko taglibFinder.excludePackage(). Add module name to Jest globals marko-jest > taglibExcludePackages. All components from that module/package will be shallow rendered

Checkout https://github.com/abiyasa/marko-jest#shallow-rendering for more info

v4.0.0

01 Aug 15:10
Compare
Choose a tag to compare

New features:

  • Implement sandbox getRenderedNodes() to get all rendered nodes (including HTML and non-HTML element nodes). Marko component property el & els will be deprecated.

Breaking changes:

  • Increase the minimum Marko version (min 4.9.x)
  • Update Jest version

v3.0.0

26 Jan 20:46
Compare
Choose a tag to compare

Fix the issue with nested components. This is breaking changes since it breaks the old tests.

  • All nested components are now rendered & instances are initiated properly.
  • component.getComponents() and component.getComponent() works properly

v2.1.1

25 Jan 15:03
Compare
Choose a tag to compare

Minor bug fix:

  • Remove child elements removal on sandbox reset. This could cause node issues on some component with nesting ones.

v2.1.0

22 Jan 16:28
Compare
Choose a tag to compare

Add MIT License ⚖️

v2.0.0

22 Jan 15:15
Compare
Choose a tag to compare

Update to Jest 22

  • No need to do JSDOM setup . Jest 22 comes with JSDOM.
  • Test run up to 30% faster 🚀🚀