Files
bbda1f4f59 test: Use rstest as the test framework (#11417)
Use Rstest instead of Jest when test `packages/core` and `wasm binding`.

https://rstest.rs/


```bash
$ cd packages/core
$ hyperfine  'yarn run test' 'yarn run test:rstest'             

Benchmark 1: yarn run test
  Time (mean ± σ):      2.346 s ±  0.187 s    [User: 5.283 s, System: 3.705 s]
  Range (min … max):    1.983 s …  2.564 s    10 runs

Benchmark 2: yarn run test:rstest
  Time (mean ± σ):      1.740 s ±  0.372 s    [User: 4.115 s, System: 1.388 s]
  Range (min … max):    1.440 s …  2.668 s    10 runs

Summary
  yarn run test:rstest ran
    1.35 ± 0.31 times faster than yarn run test
```

---------

Co-authored-by: Copilot <[email protected]>
2026-01-07 23:23:25 +09:00

6 lines
113 B
Bash
Executable File

#!/usr/bin/env bash
set -eu
wasm-pack build --out-name wasm --release --scope=swc --target nodejs
npx rstest $@