Skip to content

Releases: web-infra-dev/rstest

v0.6.6

20 Nov 03:57
05293c1

Choose a tag to compare

What's Changed

New Features 🎉

  • feat(vscode): communicate with worker using ipc instead of websocket by @claneo in #691
  • feat: support get runtime config via rs.getConfig API by @9aoy in #701
  • feat: support displaying slow-running tests by @9aoy in #706

Bug Fixes 🐞

  • fix(vscode): correct icon path by @fi3ework in #703
  • fix: should load json file correctly by @9aoy in #702
  • fix: suppress ESModulesLinkingError for exports that might be implemented in mock by @9aoy in #704
  • fix: describe.each type error by @9aoy in #707

Document 📖

  • docs: use rspress new UI by @9aoy in #697
  • docs: update doc ui by @9aoy in #699
  • docs!: rename filename from camel to kebab by @9aoy in #705

Other Changes

  • chore: update vscode extension build script by @9aoy in #696

Full Changelog: v0.6.5...v0.6.6

v0.6.5

13 Nov 12:02
1075950

Choose a tag to compare

What's Changed

New Features 🎉

  • feat(vscode): remove unnecessary logger code by @claneo in #685

Bug Fixes 🐞

  • fix: should get project's tsconfigPath correctly by @9aoy in #687
  • fix(vscode-extension): import rstest error on windows by @9aoy in #693

Document 📖

  • docs: update testNamePattern configuration details by @9aoy in #690

Other Changes

  • chore: no need to run files when run list filesOnly by @9aoy in #689
  • chore: only render status in tty context by @9aoy in #692
  • chore(vscode-extension): update default test file glob pattern by @9aoy in #694

New Contributors

Full Changelog: v0.6.4...v0.6.5

v0.6.4

11 Nov 08:50
9fab8c0

Choose a tag to compare

What's Changed

New Features 🎉

  • feat: support customize the chai config via chaiConfig configuration. by @9aoy in #683
  • feat: support bail tests by @9aoy in #684

Other Changes

  • chore: exports some Rstest API types by @9aoy in #682

Full Changelog: v0.6.3...v0.6.4

v0.6.3

10 Nov 03:30
ad39bb5

Choose a tag to compare

What's Changed

New Features 🎉

  • feat(vscode): support custom rstest package path by @njzydark in #679

Bug Fixes 🐞

  • fix(coverage): defaultSummarizer pkg by @9aoy in #675

Other Changes

  • chore: bump rslib to fix rstest/core rebuild panic by @9aoy in #674
  • chore(vscode): adjust the compatible version of vscode to 1.97.0 by @njzydark in #678
  • chore: remove SIGTERM event handler by @9aoy in #680

Full Changelog: v0.6.2...v0.6.3

v0.6.2

05 Nov 12:39
b154dfc

Choose a tag to compare

What's Changed

New Features 🎉

  • feat: support logHeapUsage by @9aoy in #666
  • feat: add defineProject helper by @9aoy in #670

Bug Fixes 🐞

  • fix: inaccurate build time in watch mode by @9aoy in #659
  • fix: should catch onTestCaseResult rpc timeout error by @9aoy in #661
  • fix: should catch process.kill error correctly by @9aoy in #660
  • fix: support npm package names in setupFiles by @9aoy in #671

Document 📖

  • docs: add StackBlitz online example by @9aoy in #658

Other Changes

Full Changelog: v0.6.1...v0.6.2

v0.6.1

29 Oct 04:03
a7c54ca

Choose a tag to compare

What's Changed

Performance 🚀

  • perf: use nosources-source-map by @9aoy in #650

Bug Fixes 🐞

  • fix: vscode release error by @9aoy in #647
  • fix: name conflicts when the project is a special configuration by @9aoy in #651
  • fix: type error when each template type is primitive by @9aoy in #653
  • fix(esm-output): __webpack_require__.C is not a function by @9aoy in #656
  • fix: should bind setTimetout to globalThis by @fi3ework in #655

Document 📖

Other Changes

Full Changelog: v0.6.0...v0.6.1

v0.6.0

27 Oct 07:25
47b204d

Choose a tag to compare

What's Changed

Breaking Changes

Drop support of async mock factory

Drop support of async mock factory and introduce a new synchronous replacement for rs.importActual with import attributes.

import * as foo from 'foo' with { "rstest": "importActual" }

rs.mock('foo', ()=> {
  return { ...foo, extra: 1 }
})

Learn more about #618 and documentation about mock modules.

New Features 🎉

  • feat: drop support of async mock factory by @fi3ework in #618
  • feat: add RSTEST_WORKER_ID environment variable by @9aoy in #641

Bug Fixes 🐞

  • fix(mock): prevent mocked module overwrite by new loaded chunk modules by @fi3ework in #637
  • fix: normalize <rootDir> in windows by @9aoy in #645
  • fix: spyOn can be worked with imported properties by @9aoy in #644

Document 📖

  • docs: fix GitHub Actions spelling in reporter and documentation by @chenjiahan in #643

Other Changes

  • test: should load external module singleton by @9aoy in #635
  • chore(deps): update all non-major dependencies by @renovate[bot] in #636
  • chore(deps): update actions/setup-node action to v6 by @renovate[bot] in #640
  • chore(deps): update all non-major dependencies by @renovate[bot] in #639
  • chore: use tinypool workerId as RSTEST_WORKER_ID by @9aoy in #642
  • release: 0.6.0 by @9aoy in #646

Full Changelog: v0.5.4...v0.6.0

v0.5.4

21 Oct 07:29
72dac90

Choose a tag to compare

What's Changed

New Features 🎉

  • feat: support hideSkippedTests option by @9aoy in #631
  • feat: support resolveSnapshotPath option by @9aoy in #632

Bug Fixes 🐞

  • fix: use project root's absolute path by @9aoy in #629

Other Changes

  • chore: add hint message for react not defined error by @9aoy in #628
  • chore: update log display by @9aoy in #630

Full Changelog: v0.5.3...v0.5.4

v0.5.3

20 Oct 07:11
cff763d

Choose a tag to compare

What's Changed

New Features 🎉

  • feat: support show summary status when test running by @9aoy in #626

Other Changes

  • chore: slowTestThreshold only work for test case by @9aoy in #625
  • release: 0.5.3 by @9aoy in #627

Full Changelog: v0.5.2...v0.5.3

v0.5.2

16 Oct 12:03
05ef44a

Choose a tag to compare

Highlights 💡

VS Code extension

The Rstest VS Code extension can be used to discovers, displays, and runs tests in your workspace. It builds a rich Test Explorer tree from your test files and keeps it up to date as files change.

Install the extension from the marketplace rstest.

What's Changed

New Features 🎉

Bug Fixes 🐞

  • fix: should handle error string correctly by @9aoy in #614
  • fix(docs): use rp-not-doc for rsbuild doc badge by @Timeless0911 in #616
  • fix(vscode): should wait for initial scan by @fi3ework in #615
  • fix: out-of-memory in large project by @9aoy in #621

Document 📖

  • docs: fix Overview component style by @9aoy in #620

Other Changes

  • chore(deps): update dependency happy-dom to v20 [security] by @renovate[bot] in #612
  • chore(vscode): add icon, clean dist artifacts by @fi3ework in #617
  • chore(deps): update dependency happy-dom to v20.0.2 [security] by @renovate[bot] in #619
  • chore(workflow): disable fail-fast option in e2e test by @9aoy in #622

Full Changelog: v0.5.1...v0.5.2