mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 05:01:42 +03:00
b02e189d07
swc_ecma_codegen: - Fix codegen of `U+0028` and `U+0029`. swc_ecma_minifier: - Implement MVP. swc_ecma_transforms_base: - `fixer`: Handle seq/await in rhs of for-of.
19 lines
458 B
Bash
Executable File
19 lines
458 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# This script automatically add tests to golden.
|
|
# Note that this is append-only.
|
|
set -eu
|
|
|
|
export SWC_RUN=0
|
|
|
|
cargo test --test compress --all-features fixture_tests__terser__compress__ \
|
|
| grep 'fixture_tests__terser__compress__' \
|
|
| grep 'js .\.\. ok$' \
|
|
| sed -e 's!test fixture_tests__terser__compress__!!' \
|
|
| sed -e 's! ... ok!!' \
|
|
| sed -e 's!__!/!g' \
|
|
| sed -e 's!_js!.js!' \
|
|
>> tests/golden.txt
|
|
|
|
./scripts/sort.sh
|