Skip to content

Releases: web-infra-dev/rstest

v0.7.9

09 Jan 07:17
a099516

Choose a tag to compare

What's Changed

New Features 🎉

  • feat(vscode): continuous run by @claneo in #814
  • feat: browser-mode by @fi3ework in #757
  • feat: output ES module format by default by @9aoy in #763
  • feat(browser): add @rstest/browser-react package for React component testing by @fi3ework in #831
  • feat: add new adapter for Rsbuild by @9aoy in #830
  • feat(coverage-istanbul): transform coverage using source map by @claneo in #821
  • feat: support rstest init command by @fi3ework in #841
  • feat(browser-react): export configure in non-pure entry by @fi3ework in #846

Bug Fixes 🐞

  • fix: coverage cannot includes parent folders by @claneo in #825
  • fix: Using include in coverage will cause file items to be displayed repeatedly in the report. by @hoifong in #822
  • fix: override globals that Fetch API relies on by @tmkx in #833
  • fix(browser): forever hang if playwright is not installed by @fi3ework in #836
  • fix: should print error correctly when worker unexpectedly exit by @9aoy in #837
  • fix: handle projects using extends configuration correctly by @9aoy in #843
  • fix: only filter experimental warnings by default by @9aoy in #845

Document 📖

Other Changes

  • release: @rstest/coverage-istanbul 0.1.5 by @9aoy in #839
  • release: 0.7.9 by @9aoy in #850

New Contributors

Full Changelog: v0.7.8...v0.7.9

v0.7.8

31 Dec 13:57
fe2cc7f

Choose a tag to compare

What's Changed

New Features 🎉

  • feat: support testEnvironment.options by @9aoy in #816

Bug Fixes 🐞

  • fix: allow inlineSnapshot calls in each with same snapshot by @9aoy in #820
  • fix: should treat mjs and mts files as strict ES modules by @9aoy in #818

Document 📖

  • docs: update onConsoleLog usage by @9aoy in #810
  • docs: add adapters guide by @9aoy in #811
  • docs: add mocking re-exported modules tip by @9aoy in #817
  • docs: rename runtime API overview label by @9aoy in #819
  • docs: update links from rspack-contrib to rstackjs by @chenjiahan in #823

Other Changes

Full Changelog: v0.7.7...v0.7.8

v0.7.7

26 Dec 10:18
23edeba

Choose a tag to compare

What's Changed

New Features 🎉

  • feat: support extend rstest config by @9aoy in #799

Performance 🚀

Bug Fixes 🐞

  • fix: cannot debug or profile child processes by @claneo in #800
  • fix: incorrect setup files source mapping when no isolated by @9aoy in #805
  • fix: coverage should show 0% when no source files are tested by @9aoy in #806

Document 📖

Other Changes

  • release: 0.7.6 by @9aoy in #796
  • test: exclude mock cases when isolate false by @9aoy in #797
  • chore(deps): update dependency @rslib/core to v0.18.6 by @renovate[bot] in #804

Full Changelog: v0.7.6...v0.7.7

v0.7.6

23 Dec 12:33
7e36e65

Choose a tag to compare

What's Changed

New Features 🎉

  • feat: always display all test cases when running a single test file by @9aoy in #794

Performance 🚀

Bug Fixes 🐞

  • fix: aggregateTimeout default to 5 by @9aoy in #783
  • fix: should collect test correctly when no isolate by @9aoy in #786
  • fix: some runtime errors when no isolate by @9aoy in #787

Document 📖

  • docs: correct capitalization several words by @chenjiahan in #790
  • docs: add rstest core API by @9aoy in #791
  • docs: reorganize api/ directory structure by @9aoy in #793

Other Changes

  • chore(deps): update all non-major dependencies by @renovate[bot] in #795

Full Changelog: v0.7.5...v0.7.6

v0.7.5

18 Dec 04:53
369de7f

Choose a tag to compare

What's Changed

New Features 🎉

  • feat(vscode): support collect tests from runtime by @claneo in #754
  • feat(coverage): support custom reporters like @canyonjs/report-html by @travzhang in #771
  • feat(deps): update @rsbuild/core to 1.7.0-beta.0 by @9aoy in #781

Bug Fixes 🐞

  • fix: should respect config.root option by @9aoy in #778
  • fix: should rerun all tests when setup file changes by @9aoy in #779
  • fix: resolve setupFile edge cases by @9aoy in #780

Document 📖

  • docs: add reporters guide and node API by @9aoy in #774

Full Changelog: v0.7.4...v0.7.5

v0.7.4

16 Dec 12:06
5c2d5c7

Choose a tag to compare

What's Changed

New Features 🎉

  • feat: support global setup files by @9aoy in #772
  • feat(vscode): support run tests with debug or coverage, list test items in tree structure by @claneo in #738
  • feat: support get task name from test context by @9aoy in #770
  • feat: export mergeProjectConfig method by @9aoy in #773

Document 📖

  • docs: add includeTaskLocation configuration by @9aoy in #769

Full Changelog: v0.7.3...v0.7.4

v0.7.3

15 Dec 03:59
8cecbe4

Choose a tag to compare

What's Changed

New Features 🎉

  • feat: support rs.hoisted by @fi3ework in #717
  • feat: collect test location by @claneo in #739
  • feat(coverage-istanbul): read coverage data without babel by @claneo in #752
  • feat: support show assertion calls when test timeout by @9aoy in #753
  • feat: support output error message to stderr by @9aoy in #758

Document 📖

  • docs: add timeout priority order by @9aoy in #755
  • docs: fix setConfig link by @9aoy in #756
  • docs: add description for Rstest by @9aoy in #759
  • docs: update cli options by @9aoy in #760
  • docs: add define project guide by @9aoy in #761
  • docs: add rs.hoisted API documentation by @Copilot in #762

Other Changes

  • chore(deps): update dependency @sinonjs/fake-timers to v15 by @renovate[bot] in #601
  • chore(deps): update actions/checkout action to v6 by @renovate[bot] in #765

New Contributors

  • @Copilot made their first contribution in #762

Full Changelog: v0.7.2...v0.7.3

v0.7.2

10 Dec 06:42
d6ee7fa

Choose a tag to compare

What's Changed

New Features 🎉

  • feat(vscode): report test run progress by @claneo in #720
  • feat: support use toMatchInlineSnapshot outside of test by @9aoy in #747

Bug Fixes 🐞

  • fix: fixed font color when use background color by @9aoy in #750

Other Changes

  • chore(ci): manually update rsbuild core package until v1.7 by @9aoy in #746
  • chore(deps): update all non-major dependencies by @renovate[bot] in #662
  • test: remove flaky signalListener case by @9aoy in #748

Full Changelog: v0.7.1...v0.7.2

v0.7.1

08 Dec 11:35
38dbedc

Choose a tag to compare

What's Changed

New Features 🎉

  • feat: support output test files in ES module format by @9aoy in #735

Performance 🚀

  • perf: fix sourcemap performance degradation in browser environment by @9aoy in #743

Bug Fixes 🐞

  • fix: should not throw error when undefined module is mocked by @9aoy in #740
  • fix: not exit with code 1 when unexpectedly exited during teardown by @9aoy in #741

Document 📖

  • docs: add Specify external type guide by @9aoy in #742

Full Changelog: v0.7.0...v0.7.1

v0.7.0

05 Dec 06:53
87cc4f3

Choose a tag to compare

What's Changed

Breaking Changes

Use SWC v47

Since SWC 46 is incompatible with swc-plugin-coverage-instrument, we are skipping SWC 46 (rspack 1.6 and rsbuild 1.6). Instead, SWC 47 will be used in rspack 1.7, and rstest will directly use the canary version of rspack / rsbuild 1.7 with SWC 47.

If your project uses SWC Wasm plugins (such as @swc/plugin-emotion), you will need to upgrade the plugins to a version compatible with swc_core@47; otherwise, it may cause build errors due to version incompatibility.

see https://plugins.swc.rs/versions/range/768 to get all available swc plugin versions for Rstest v0.7.

New Features 🎉

  • faet: use rspack / rsbuild 1.7 canary (swc 47) by @9aoy in #712

Bug Fixes 🐞

Document 📖

  • docs: add node.js profiling guide by @9aoy in #736

Full Changelog: v0.6.9...v0.7.0