mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 21:54:36 +03:00
3522fc71e4
swc_ecma_codegen: - Fix codegen of `-0.0`. swc_ecma_transforms_base: - `fixer`: Handle tag of tagged template literals. swc_ecma_minifier: - Implement more rules for strings. - Implement more rules for teplate literals. - Implement more rules for comparisons. - Implement more rules for destructuring bindings. - Implement more rules for switch statements. - Implement more rules for expressions.
23 lines
526 B
Bash
Executable File
23 lines
526 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# This script exists to prevent regression.
|
|
#
|
|
# This script invoked tests two time.
|
|
# For first, it runs tests in no-regression mode.
|
|
# In the mode, only tests listed in tests/golden.txt will be tested.
|
|
#
|
|
# For second invokation, arguments are passed to cargo test so the user can
|
|
# filter tests.
|
|
#
|
|
set -eu
|
|
|
|
export RUST_LOG=swc_ecma_minifier=trace
|
|
|
|
if [ -z "$@" ]; then
|
|
./scripts/sort.sh
|
|
|
|
GOLDEN_ONLY=1 cargo test --test compress --all-features
|
|
fi
|
|
|
|
cargo test --test compress --all-features $@
|