
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
@chainsafe/eth2.0-spec-test-util
Advanced tools
Mocha / Chai utility for interacting with eth2.0 spec tests
Run yaml Eth2.0 spec tests for a certain function Compares actual vs expected for all test cases
testYamlPath string path to yaml spec testtestFunc Function function to use to generate outputgetInput Function function to convert test case into input array (optional, default testCase=>testCase.input)getExpected Function function to convert test case into a comparable expected output (optional, default testCase=>testCase.output)getActual Function function to convert function output into comparable actual output (optional, default result=>result)shouldError Function function to convert test case into a boolean, if the case should result in an error (optional, default (testCase,index,testSpec)=>false)shouldSkip Function function to convert test case into a boolean, if the case should be skipped (optional, default (testCase,index,testSpec)=>false)expectFunc Function function to run expectations against expected and actual output (optional, default (testCase,expect,expected,actual)=>expect(actual).to.be.equal(expected))Set env variable GEN_PROFILE_DIR with path to directory where you wish your cpu profiles to be generated.
FAQs
Spec test suite generator from yaml test files
The npm package @chainsafe/eth2.0-spec-test-util receives a total of 25 weekly downloads. As such, @chainsafe/eth2.0-spec-test-util popularity was classified as not popular.
We found that @chainsafe/eth2.0-spec-test-util demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.