mirror of
https://github.com/danbulant/oxc
synced 2026-05-22 05:38:54 +00:00
Fixes 11 TS conformance tests and 18 babel tests. Adds types to the symbol table functionally conformant to TS behavior but symbol flags implemented slightly differently. Symbol redeclaration check is also not entirely conformant but fixing this seems like a separate PR. For testing purposes - consistent-export-type was also implemented (WIP). |
||
|---|---|---|
| .. | ||
| babel@d062d47d57 | ||
| misc | ||
| src | ||
| test262@c4642dd714 | ||
| typescript@2f34e57ed3 | ||
| Cargo.toml | ||
| formatter_babel.snap | ||
| formatter_test262.snap | ||
| minifier_babel.snap | ||
| minifier_test262.snap | ||
| parser_babel.snap | ||
| parser_misc.snap | ||
| parser_test262.snap | ||
| parser_typescript.snap | ||
| README.md | ||
Coverage
The parser is tested against test262, babel and TypeScript for conformance.
Note: tests against regexp are disabled for now.
Clone the test files beforehand:
git submodule update --init
Development
# full run
cargo coverage
cargo coverage js # for test262
cargo coverage babel # for babel
cargo coverage ts # for typescript
# run in watch
cargo watch -x 'coverage js'
# filter for a file path
cargo watch -x 'coverage js --filter filter-file-path'