Releases: web-infra-dev/rstest
v0.7.9
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 initcommand 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
extendsconfiguration correctly by @9aoy in #843 - fix: only filter experimental warnings by default by @9aoy in #845
Document 📖
- docs: link to Rsbuild plugin list by @chenjiahan in #829
- docs: enable rspress ssg-md by @9aoy in #835
- docs: update
lazyBarrellink by @9aoy in #840 - docs: update rslib integration guide by @9aoy in #844
Other Changes
New Contributors
Full Changelog: v0.7.8...v0.7.9
v0.7.8
What's Changed
New Features 🎉
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
onConsoleLogusage by @9aoy in #810 - docs: add
adaptersguide by @9aoy in #811 - docs: add
mocking re-exported modulestip 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
- release: @rstest/adapter-rslib v0.1.1 by @9aoy in #812
- chore(deps): bump Rsbuild 1.7.0 by @fi3ework in #824
- chore: bump @rsbuild/core to 1.7.1 by @fi3ework in #827
Full Changelog: v0.7.7...v0.7.8
v0.7.7
What's Changed
New Features 🎉
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
What's Changed
New Features 🎉
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
Full Changelog: v0.7.5...v0.7.6
v0.7.5
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 📖
Full Changelog: v0.7.4...v0.7.5
v0.7.4
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
mergeProjectConfigmethod by @9aoy in #773
Document 📖
Full Changelog: v0.7.3...v0.7.4
v0.7.3
What's Changed
New Features 🎉
- feat: support
rs.hoistedby @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 projectguide 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
What's Changed
New Features 🎉
- feat(vscode): report test run progress by @claneo in #720
- feat: support use
toMatchInlineSnapshotoutside of test by @9aoy in #747
Bug Fixes 🐞
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
What's Changed
New Features 🎉
Performance 🚀
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 📖
Full Changelog: v0.7.0...v0.7.1
v0.7.0
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 🎉
Bug Fixes 🐞
- fix wasm load error in #712
- always hoist
@rstest/coreinit fragment in web-infra-dev/rspack#12363
Document 📖
Full Changelog: v0.6.9...v0.7.0