Skip to content

Releases: web-infra-dev/rstest

v0.3.2

03 Sep 06:59
96f5364
Compare
Choose a tag to compare

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

29 Aug 10:07
620a609
Compare
Choose a tag to compare

What's Changed

New Features πŸŽ‰

  • feat: filter file based on workspace's root by @9aoy in #521
  • feat: support filter projects via --project option by @9aoy in #520
  • feat: support inline project config by @9aoy in #522

Full Changelog: v0.3.0...v0.3.1

v0.3.0

27 Aug 11:13
6ca6025
Compare
Choose a tag to compare

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 πŸŽ‰

  • feat: re-run on demand in watch mode. by @fi3ework in #475

  • feat: support test projects by @9aoy in #420

  • feat: support onTestFinished hook by @9aoy in #493

  • feat: support onTestFailed hook by @9aoy in #501

  • feat: support restart when project config changed by @9aoy in #514

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 πŸ“–

  • docs: add TestContext by @9aoy in #495
  • docs: add chainable modifiers examples by @9aoy in #500

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 of isFirstRun 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

20 Aug 09:53
1017db1
Compare
Choose a tag to compare

What's Changed

New Features πŸŽ‰

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/ to e2e/ 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

15 Aug 07:43
f1243da
Compare
Choose a tag to compare

What's Changed

Bug Fixes 🐞

  • fix(perf): default worker counts by @9aoy in #480

Full Changelog: v0.2.0...v0.2.1

v0.2.0

15 Aug 06:36
a1eedc9
Compare
Choose a tag to compare

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

08 Aug 09:03
61120b6
Compare
Choose a tag to compare

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

06 Aug 10:31
569bdc7
Compare
Choose a tag to compare

What's Changed

Breaking Changes

  • refactor!: enable run mode by default when run rstest command by @9aoy in #448

Bug Fixes 🐞

  • fix: use inline-source-map when debugger by @9aoy in #445

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

05 Aug 06:31
d96b20f
Compare
Choose a tag to compare

What's Changed

Performance πŸš€

  • perf: prebundle runtime dependencies by @9aoy in #436

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

01 Aug 06:19
c37290a
Compare
Choose a tag to compare

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 πŸ“–

  • docs: add cli options example by @9aoy in #426

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