mirror of
https://github.com/hanzoai/swc.git
synced 2026-10-30 19:42:53 +00:00
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]>
8 lines
64 B
Bash
Executable File
8 lines
64 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eu
|
|
|
|
./scripts/build.sh
|
|
|
|
npx rstest $@
|