
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
test262-parser-runner
Advanced tools
A test runner for running the ECMAScript Test Suite against a parser
A test runner for running the ECMAScript Test Suite against a given parser.
npm i test262-parser-runner
The test runner provides two means for marking bad test cases.
First, you can pass a skip filter, which is a function that gets the test case passed in and returns true if a test should be completely skipped. It is most useful for filtering out tests that are not supposed to pass, for example because they test features that are not supposed to be implemented.
Second, there is a whitelist, which is a list of test ids that don't yield the expected result. It should be used for tests that are supposed to succeed eventually.
This is a simple example for running the tests against acorn:
const run = require("test262-parser-runner")
const parse = require("acorn").parse
run(
(content, {sourceType}) => parse(content, { sourceType, ecmaVersion: 9 }),
{
skip: test => false, // Default is to skip no test
whitelist: [], // Default is to whitelist no test
testsDirectory: "/path/to/test262" // Default is to use the bundled version
}
)
This package is based on a MIT-licensed test runner implemented by Mike Pennisi for the babel project.
The package itself is released under the GNU Affero General Public License v3.0 by Adrian Heine.
0.5.0 (2018-10-21)
FAQs
A test runner for running the ECMAScript Test Suite against a parser
The npm package test262-parser-runner receives a total of 0 weekly downloads. As such, test262-parser-runner popularity was classified as not popular.
We found that test262-parser-runner demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.