mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 15:12:08 +03:00
b22d084180
Description: As we have a way to verify that input is behaving identically, we create a huge matrix of compile options and process the input with all of those options. This system can be used to check for fixed issues easily. For first, someone can add issues using a unix hidden directory, which starts with `.`. Those tests are ignored by `testing::fixture`. Then, when something is changed, one can run `./scripts/check-issues.sh`. If a test succeeds, it means it's fixed and the starting dot (`.`) of the path to the test input file is removed.
290 B
290 B
Testing
tests/exec
All files named exec.js
or exec.ts
will be executed, and the test system will ensure that original source code and transpiled source code print the same output to the console.
You can use ./scripts/check-issues.sh
to automatically unignore fixed tests.