oxc/tasks/coverage
Boshen 9ed682a38e
fix(semantic): fix function redeclaration errors
The problem here we face here is that TypeScript does not consider Annex
B.3.2, which makes implementation a bit more difficult.

This implementation conforms to test262.
2023-03-17 10:06:02 +08:00
..
babel@6925ac555c feat(parser): support decorators in class expression (#190) 2023-03-17 09:33:04 +08:00
src chore(coverage): remove tests for stage 3 proposal-json-modules 2023-03-14 11:02:00 +08:00
test262@9704d7f22f chore: bump submodules 2023-03-15 12:46:21 +08:00
typescript@b8c71685f9 fix(semantic): fix function redeclaration errors 2023-03-17 10:06:02 +08:00
babel.snap fix(semantic): fix function redeclaration errors 2023-03-17 10:06:02 +08:00
Cargo.toml chore(rust): bump deps 2023-03-11 23:26:45 +08:00
printer.snap chore: bump submodules 2023-03-15 12:46:21 +08:00
README.md chore(coverage): print negative tests; enable decorators; update to the latest remote 2023-03-07 23:37:00 +08:00
test262.snap fix(semantic): fix function redeclaration errors 2023-03-17 10:06:02 +08:00
typescript.snap fix(semantic): fix function redeclaration errors 2023-03-17 10:06:02 +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

For maintainers, update to the latest remote, run:

git submodule update --remote

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'