Releases: web-infra-dev/rstest
Releases Β· web-infra-dev/rstest
v0.3.2
What's Changed
New Features π
Document π
- docs: update test projects by @9aoy in #527
- docs: add
debugging in VS Code
by @9aoy in #530 - docs: display llms UI by @9aoy in #533
- docs: add configure rsbuild / rspack by @9aoy in #532
Other Changes
- type: export
ProjectConfig
by @9aoy in #526 - chore: support print full error stack in debug mode by @9aoy in #525
- chore: support output projects normalizedConfig in debug mode by @9aoy in #531
- chore(deps): update dependency tinypool to v2 by @renovate[bot] in #536
- Revert "chore(deps): update dependency tinypool to v2" by @9aoy in #537
Full Changelog: v0.3.1...v0.3.2
v0.3.1
v0.3.0
Highlights π‘
Incremental re-runs in watch mode
Watch mode now supports incremental re-runs. When a test file or its dependencies change, Rstest intelligently re-executes only the affected tests, significantly improving testing efficiency.
Test projects
Support define & run multiple test projects via projects
configuration. This allows users to define and run tests across multiple project directories with different configurations, enabling better organization of test suites in monorepo structures.
import { defineConfig } from '@rstest/core';
export default defineConfig({
projects: [
// A monorepo: each package directory is a project
'packages/*',
// All apps that provide an rstest config file
'apps/**/rstest.config.ts',
// A specific project directory
'<rootDir>/services/auth',
// A specific project's config file
'./projects/web/rstest.config.ts',
],
});
What's Changed
New Features π
Bug Fixes π
- fix: add
onTestFinished
to testContext by @9aoy in #494 - fix: use clearScreen instead of clearLogs by @9aoy in #504
- fix: manualMockRoot in projects by @9aoy in #508
- fix: compat NO_COLOR env by @9aoy in #509
- fix: should avoid outputs conflict in projects by @9aoy in #515
- fix: should not expand diff by default by @9aoy in #516
Document π
Other Changes
- chore: should not clearLogs in debug mode by @9aoy in #496
- chore(deps): update all non-major dependencies by @renovate[bot] in #497
- test: avoid repeated killing of exec by @9aoy in #498
- test: fix unstable concurrent cases with onTestFinished by @9aoy in #499
- test: fix unawaited promise in tests by @9aoy in #503
- chore: use
isFirstCompile
instead ofisFirstRun
by @9aoy in #506 - chore: update react example with
@testing-library/jest-dom
by @9aoy in #510 - chore(deps): update all non-major dependencies by @renovate[bot] in #511
- chore: update no rerun log by @9aoy in #513
Full Changelog: v0.2.2...v0.3.0
v0.2.2
What's Changed
New Features π
- feat(deps): update
@rspack/core
v1.5.0-beta.4 (@rspack/core
v1.5.0-beta.1) by @renovate[bot] in #484- perf: enable Rspack's barrel file optimization by default by @chenjiahan in web-infra-dev/rsbuild#5840
- feat(cli): add short option -w for watch mode by @chenjiahan in #482
Other Changes
- chore: format cli shortcuts output by @9aoy in #486
- chore: group
github-actions
logs by @9aoy in #487 - chore(deps): update all non-major dependencies by @renovate[bot] in #484
- chore: clean logs before dev recompile by @9aoy in #491
- chore: rename
test/
toe2e/
by @9aoy in #483 - test: add CLI shortcuts test cases by @9aoy in #488
- test: split shortcuts case to fix test timeout by @9aoy in #489
- test: add retry for shortcuts case by @9aoy in #490
Full Changelog: v0.2.1...v0.2.2
v0.2.1
v0.2.0
What's Changed
Breaking changes
- refactor!: remove
node
exports by @9aoy in #472 - feat!: update minimum Node.js version to 18.12.0 by @9aoy in #478
New Features π
- feat: support filter test name regex pattern via
t
shortcut by @9aoy in #462 - feat: support filter by filename regex pattern via
p
shortcut by @9aoy in #470 - feat(cli): support restart rstest when config file changed by @9aoy in #477
Other Changes
- chore(deps): update dependency @rsdoctor/rspack-plugin to ^1.2.2 by @renovate[bot] in #465
- chore(deps): update dependency rsbuild-plugin-open-graph to ^1.1.0 by @renovate[bot] in #467
- chore(deps): update actions/checkout action to v5 by @renovate[bot] in #468
- chore(deps): update dependency heading-case to v1 by @renovate[bot] in #469
- chore(deps): update dependency memfs to ^4.36.0 by @renovate[bot] in #466
- chore(deps): group all non-major dependencies by @9aoy in #471
- enhance: only rerun failed snapshot test files when update snapshots by @9aoy in #473
- chore: export
mergeRstestConfig
util by @9aoy in #474
Full Changelog: v0.1.3...v0.2.0
v0.1.3
What's Changed
New Features π
- feat: init cli shortcut by @9aoy in #453
- feat: support rerun all tests via
a
CLI shortcut by @9aoy in #454 - feat: support update snapshot via
u
shortcut by @9aoy in #455 - feat: support rerun failed tests via
f
shortcut by @9aoy in #456
Document π
- docs: add Rslint and version badges to Rstack tools table by @chenjiahan in #451
- docs: remove duplicate Rstack description sections by @chenjiahan in #452
- docs: add
CLI shortcuts
section by @9aoy in #458
Other Changes
- chore: integrate Rslint for type-aware linting by @fi3ework in #450
- enhance: support trigger shortcut without
enter
event by @9aoy in #457 - chore(deps): update all patch dependencies by @renovate[bot] in #459
- release: 0.1.3 by @9aoy in #460
Full Changelog: v0.1.2...v0.1.3
v0.1.2
What's Changed
Breaking Changes
Bug Fixes π
Document π
- docs: add alias for rstest utility API by @9aoy in #447
- docs: add note for
describe.skip
by @9aoy in #446
Full Changelog: v0.1.1...v0.1.2
v0.1.1
What's Changed
Performance π
Bug Fixes π
- fix: should throw error when unknown environment by @9aoy in #439
- fix: add original license and copyrights for the referenced code by @9aoy in #438
- fix: shim
require
in rstest bundle by @9aoy in #440
Document π
- docs: add
--reporter
option by @9aoy in #434 - docs: update config overview UI by @9aoy in #435
- docs: fix
@sinonjs/fake-timers
link by @9aoy in #441
Other Changes
- chore(workflow): enable npm trusted publishing by @chenjiahan in #442
- enhance: should throw error when nest describe / test inside a test by @9aoy in #443
- release: 0.1.1 by @9aoy in #444
Full Changelog: v0.1.0...v0.1.1
v0.1.0
What's Changed
New Features π
- feat: support Github Actions Reporter by @9aoy in #429
- feat: support VerboseReporter by @9aoy in #425
- feat(deps): update @rspack/core to v1.4.11
Bug Fixes π
- fix: should show
module not found
error codeFrame correctly by @9aoy in #427 - fix: improve error handling for unhandledRejection exception by @9aoy in #428
Document π
Other Changes
- chore: add watch tip for watch mode by @9aoy in #421
- chore(deps): update dependency memfs to ^4.28.0 by @renovate[bot] in #431
- chore(deps): update all patch dependencies by @renovate[bot] in #430
- chore(deps): update dependency typescript to ^5.9.2 by @renovate[bot] in #432
- chore(deps): update dependency cross-env to v10 by @renovate[bot] in #424
- release: 0.1.0 by @9aoy in #433
Full Changelog: v0.0.10...v0.1.0