test262-stream offers a Node.js API for programmatically traversing and consuming the Test262 JavaScript conformance test suite. It enables developers to stream individual test cases, their complete source code (including any 'includes' files), associated metadata, and copyright information. This library is particularly valuable for JavaScript engine developers, transpiler authors, or anyone constructing tools that require automated execution or analysis of Test262 tests. The current stable version is 1.4.0. Given its specialized function of parsing a specific external test suite, its release cadence is likely synchronized with updates or structural modifications within the Test262 repository itself, rather than frequent independent feature releases. Its primary differentiator lies in offering stream-based, granular access to Test262 content, abstracting away the complexities of file system traversal and frontmatter parsing, which distinguishes it from manual file reading or lower-level Test262 utilities.
npm install test262-streamVerified import paths — ran on the pinned version, not inferred.
This quickstart initializes a `TestStream` to process a subset of the Test262 test suite, logging details of each test found.
Omit `acceptVersion` to rely on the library's default supported version, or ensure the provided version matches the actual Test262 repository version you are using. Consider updating the `test262-stream` library itself.
Verify that the `test262Dir` argument points to the correct absolute or relative path of your Test262 repository clone.
Set `omitRuntime: false` if you intend to execute `test.contents` directly. Understand the implications based on your use case for the test content.
Use `import TestStream from 'test262-stream';` in ESM modules, or ensure your project is configured for CommonJS if sticking with `require`.
Ensure `test262Dir` points to the exact root of your Test262 repository clone, which typically contains 'test/', 'harness/', and other standard Test262 directories. Double-check the path for typos.
Update your `test262-stream` package to the latest version, or, as a temporary workaround (with caution), provide the `acceptVersion` option with the version string of your Test262 clone. However, updating the library is the recommended approach for compatibility.
No dependency data recorded yet.