mirror of
https://github.com/swc-project/swc.git
synced 2025-01-02 18:43:52 +03:00
d20c1d3089
swc_ecma_minifier: - Implement `global-defs` pass. - Implement `properties` pass partially.
16 lines
352 B
Bash
Executable File
16 lines
352 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# This script automatically add tests to golden.
|
|
# Note that this is append-only.
|
|
set -eu
|
|
|
|
cargo test --test compress --all-features \
|
|
| grep 'js .\.\. ok$' \
|
|
| sed -e 's!test fixture_terser__compress__!!' \
|
|
| sed -e 's! ... ok!!' \
|
|
| sed -e 's!__!/!g' \
|
|
| sed -e 's!_js!.js!' \
|
|
>> tests/golden.txt
|
|
|
|
./scripts/sort.sh
|