Skip to content

Commit f28d96e

Browse files
authoredMar 17, 2025··
chore(es/minifier): Make test.sh faster (#10209)
**Description:** We can run `size.rs` tests concurrently with compress tests, so do it. Without this patch, the script is too slow.
1 parent 3ca53ad commit f28d96e

File tree

1 file changed

+4
-2
lines changed
  • crates/swc_ecma_minifier/scripts

1 file changed

+4
-2
lines changed
 

‎crates/swc_ecma_minifier/scripts/test.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ export SWC_RUN=0
88

99
touch tests/compress.rs
1010

11-
UPDATE=1 cargo test -p swc_ecma_minifier --release --test size
11+
UPDATE=1 cargo test -p swc_ecma_minifier --release --test size &
1212
cargo test -p swc_ecma_minifier -p swc --no-fail-fast --test projects --test tsc --test compress --test mangle --features concurrent $@
1313

14-
# find ../swc/tests/ -type f -empty -delete
14+
# find ../swc/tests/ -type f -empty -delete
15+
16+
wait

0 commit comments

Comments
 (0)
Please sign in to comment.