oxc/tasks/coverage
EliLichtblau 5e54bd0537
Adding types to the symbol table - consistent export type sample rule implemented (#667)
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).
2023-07-31 12:33:47 +08:00
..
babel@d062d47d57 feat(lexer): use linear lexing on WASM (#436) 2023-06-13 15:18:02 +08:00
misc chore(tasks): add swc-7187 test case 2023-06-30 16:41:52 +08:00
src refactor: avoid unstable let_chains 2023-07-27 09:44:57 +08:00
test262@c4642dd714 feat(lexer): use linear lexing on WASM (#436) 2023-06-13 15:18:02 +08:00
typescript@2f34e57ed3 feat(lexer): use linear lexing on WASM (#436) 2023-06-13 15:18:02 +08:00
Cargo.toml deps(rust): bump dependencies 2023-07-21 11:38:12 +08:00
formatter_babel.snap ci: run conformance tests and bail if there are outdated snapshots (#444) 2023-06-14 21:44:10 +08:00
formatter_test262.snap feat(parser): parse const type parameter from TypeScript v5.0 (#416) 2023-06-08 22:26:35 +08:00
minifier_babel.snap feat(minimizer): print parentheses 2023-06-01 22:45:26 +08:00
minifier_test262.snap feat(parser): parse const type parameter from TypeScript v5.0 (#416) 2023-06-08 22:26:35 +08:00
parser_babel.snap Adding types to the symbol table - consistent export type sample rule implemented (#667) 2023-07-31 12:33:47 +08:00
parser_misc.snap chore(tasks): add swc-7187 test case 2023-06-30 16:41:52 +08:00
parser_test262.snap feat(linter): implement no-import-assign (nursery) 2023-07-01 11:20:31 +08:00
parser_typescript.snap Adding types to the symbol table - consistent export type sample rule implemented (#667) 2023-07-31 12:33:47 +08:00
README.md chore(coverage): remove mention of git submodule update --remote in README 2023-04-01 10:57:25 +08:00

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'