Commit 40032e8
committed
feat: Add comprehensive test suite for Rest compiler
- Add extensive parser tests (50+ tests covering all TypeScript constructs)
- Add transformer tests (50+ tests for type stripping, decorators, class properties, etc.)
- Add codegen tests (50+ tests for JavaScript generation edge cases)
- All tests properly organized in tests/unit/ directory
- Tests cover: basic types, classes, interfaces, generics, enums, namespaces, decorators, JSX, async/await, generators, optional chaining, nullish coalescing, BigInt, private fields, import/export variations, and more
- Fixed helper function in tests to use result.unwrap() correctly
- Updated tests/lib.rs to include new test modules
- Comprehensive coverage for VSCode compatibility validation
This test suite provides extensive validation of Rest compiler's
semantic correctness and ensures OXC transformations work correctly.1 parent bae0f1b commit 40032e8
4 files changed
Lines changed: 3013 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
| |||
0 commit comments