Skip to content

About

Run test262 tests on Node 0.10 using Babel 7 and `core-js@3`.

Resources

Code of conduct

Stars

8 stars

Watchers

6 watching

Forks

Repository files navigation

Babel Test262

NOTE: Only 64-bit Linux, macOS and Windows are currently supported.

Run test262 tests on Node 0.10 using Babel 8 and core-js@3.

Installation

git clone [url of this repo] --recursive --shallow-submodules
cd babel-test262-runner
node lib/download-node

Run tests

node lib/run-tests [pattern]

[pattern] must be a substring of the path of the tests to run. For example:

node lib/run-tests arrow-function

If you want to run all the tests, run

node lib/run-tests I_AM_SURE

If you want to run against a local copy of babel repo (useful for debugging):

BABEL_PATH=../babel node lib/run-tests [pattern]

Download babel/babel master test262 artifact

node lib/download-master-artifact <optional file path>

Compare results with master

node lib/compare-results <master artifact path> <pr artifact path>

Test the runner

npm ci
npm test

This requires Node.js 21 or newer, and neither the test262 submodule nor Node.js 0.10: the tests use a small test262 fixture (test/fixtures/test262), and replace the engine with the current Node.js. They check the runner's logic, not how Babel's output behaves on Node.js 0.10.

Tests marked as todo document known bugs: they are expected to fail, and they don't fail the suite.

About

Run test262 tests on Node 0.10 using Babel 7 and `core-js@3`.

Resources

Code of conduct

Stars

8 stars

Watchers

6 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages