Skip to content

Conversation

@43081j
Copy link
Contributor

@43081j 43081j commented Jun 24, 2025

Removes mocha and runs all tests in vitest.

Notable changes:

  • TypeScript tests are still run via tsc, but the associated test
    suites are now run in vitest node mode
  • Shared tests are now run in both browser mode and node mode
  • Node tests are now run in node mode

The type tests have also been renamed to *.test-d.tsx, to make them
easier to exclude and in case we ever switch to vitest's type testing
feature.

@github-actions
Copy link

github-actions bot commented Jun 24, 2025

📊 Tachometer Benchmark Results

Summary

A summary of the benchmark results will show here once they finish.

Results

The full results of your benchmarks will show here once they finish.

tachometer-reporter-action v2 for CI

Removes mocha and runs all tests in vitest.

Notable changes:

- TypeScript tests are still run via `tsc`, but the associated test
  suites are now run in vitest _node mode_
- Shared tests are now run in both _browser mode_ and _node mode_
- Node tests are now run in _node mode_

The type tests have also been renamed to `*.test-d.tsx`, to make them
easier to exclude and in case we ever switch to vitest's type testing
feature.
@43081j 43081j force-pushed the vitest-migration branch from 24de57e to 956383a Compare June 24, 2025 11:58
@43081j 43081j mentioned this pull request Jun 24, 2025
Copy link
Member

@marvinhagemeister marvinhagemeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet!

@marvinhagemeister marvinhagemeister merged commit de6a7f1 into preactjs:main Jun 24, 2025
4 checks passed
@43081j 43081j deleted the vitest-migration branch June 24, 2025 13:35
@JoviDeCroock JoviDeCroock mentioned this pull request Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants