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.
git clone [url of this repo] --recursive --shallow-submodules
cd babel-test262-runner
node lib/download-node
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]
node lib/download-master-artifact <optional file path>
node lib/compare-results <master artifact path> <pr artifact path>
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.