Skip to main content

Conformance Tests

· One min read

This article details three github repositories for testing our parser against JavaScript and TypeScript grammar.

Test262

JavaScript has the ECMAScript Test Suite called Test262. The goal of Test262 is to provide test material that covers every observable behavior specified in the specification.

For testing conformance, please checkout its parse phase tests.

Babel

When new language features are added to JavaScript, it is required to have them get parsed by Babel. So Babel has another set of parser tests.

TypeScript

The TypeScript conformance tests can be found here.

Test Runner

Rome has implemented a test runner for the above test suites, they can be found here.