oxc/tasks/coverage
Andrew McClenaghan 6b3b260dcc
feat(Codegen): Improve codegen (#2460)
This gets all the new TS types working to the same level TS output was
before and fixes a bunch of other codegen

---------

Co-authored-by: Boshen <boshenc@gmail.com>
2024-02-21 14:41:57 +08:00
..
misc feat(parser): parse import attributes in TSImportType (#2436) 2024-02-19 12:26:42 +08:00
src feat(Codegen): Improve codegen (#2460) 2024-02-21 14:41:57 +08:00
Cargo.toml feat(coverage): add prettier idempotency test (#2402) 2024-02-12 15:30:16 +08:00
codegen_babel.snap feat(Codegen): Improve codegen (#2460) 2024-02-21 14:41:57 +08:00
codegen_misc.snap feat(parser): parse import attributes in TSImportType (#2436) 2024-02-19 12:26:42 +08:00
codegen_runtime_test262.snap fix(codegen): when async is on the left-hand side of a for-of, wrap it in parentheses (#2407) 2024-02-13 22:42:23 +08:00
codegen_test262.snap feat(Codegen): Improve codegen (#2460) 2024-02-21 14:41:57 +08:00
codegen_typescript.snap feat(Codegen): Improve codegen (#2460) 2024-02-21 14:41:57 +08:00
minifier_babel.snap chore: update snapshots 2023-11-28 16:27:10 +08:00
minifier_test262.snap chore: update snapshots 2024-01-22 19:16:09 +08:00
parser_babel.snap feat(semantic): add check for duplicate class elements in checker (#2455) 2024-02-21 14:10:19 +08:00
parser_misc.snap feat(parser): parse import attributes in TSImportType (#2436) 2024-02-19 12:26:42 +08:00
parser_test262.snap refactor: use our forked version of miette::Reporter for tests (#2266) 2024-02-02 16:15:31 +08:00
parser_typescript.snap feat(semantic): add check for duplicate class elements in checker (#2455) 2024-02-21 14:10:19 +08:00
prettier_babel.snap feat(coverage): add prettier idempotency test (#2402) 2024-02-12 15:30:16 +08:00
prettier_misc.snap feat(parser): parse import attributes in TSImportType (#2436) 2024-02-19 12:26:42 +08:00
prettier_test262.snap feat(coverage): add prettier idempotency test (#2402) 2024-02-12 15:30:16 +08:00
prettier_typescript.snap feat(coverage): add prettier idempotency test (#2402) 2024-02-12 15:30:16 +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'