{"_id":"@dapplion/lodestar-spec-test-util","_rev":"3-623faf711f0909d55f14127321ef3900","name":"@dapplion/lodestar-spec-test-util","dist-tags":{"latest":"0.18.3"},"versions":{"0.18.1":{"name":"@dapplion/lodestar-spec-test-util","version":"0.18.1","description":"Spec test suite generator from yaml test files","author":{"name":"ChainSafe Systems"},"license":"Apache-2.0","bugs":{"url":"https://github.com/ChainSafe/lodestar/issues"},"homepage":"https://github.com/ChainSafe/lodestar#readme","main":"lib/index.js","types":"lib/index.d.ts","bin":{"eth2-spec-test-download":"lib/downloadTestsCli.js"},"scripts":{"clean":"rm -rf lib && rm -f *.tsbuildinfo","build":"concurrently \"yarn build:lib\" \"yarn build:types\"","build:release":"yarn clean && yarn build && yarn build:typedocs","build:types":"tsc -p tsconfig.build.json","build:types:watch":"yarn run build:types --watch","build:lib":"babel src -x .ts -d lib --source-maps","build:lib:watch":"yarn run build:lib --watch","build:typedocs":"typedoc --out typedocs src","check-types":"tsc","lint":"eslint --color --ext .ts src/ test/","lint:fix":"yarn run lint --fix","prepublishOnly":"yarn build","pretest":"yarn run check-types","test:e2e":"mocha 'test/e2e/**/*.test.ts'"},"repository":{"type":"git","url":"git+https://github.com/ChainSafe/lodestar.git"},"keywords":["ethereum","eth2","beacon","blockchain"],"dependencies":{"@chainsafe/lodestar-utils":"^0.18.0","@chainsafe/ssz":"^0.8.0","axios":"^0.21.0","chai":"^4.2.0","mocha":"^8.1.1","rimraf":"^3.0.2","tar":"^6.0.5"},"devDependencies":{"@types/tar":"^4.0.4"},"peerDependencies":{"chai":"^4.2.0","mocha":"^8.1.1"},"_id":"@dapplion/lodestar-spec-test-util@0.18.1","_nodeVersion":"12.21.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-nEXMymzgi3bXEV7xKAHJRp7Z18LtPt8Ed/1aKyGIq7uSA+1vkIYl9rv20rA7gH/42mIrDM6CYUIqe36Jrxfycg==","shasum":"f3c91174b4ec4080cee33ce846217040dc457b37","tarball":"https://registry.npmjs.org/@dapplion/lodestar-spec-test-util/-/lodestar-spec-test-util-0.18.1.tgz","fileCount":24,"unpackedSize":61687,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgajMkCRA9TVsSAnZWagAADPgP+QAZl7ofCxMOF5amfSzs\nmtezzIaUxrJOJB1iD141y6tLBxwuYBqfHq67lZTVzsJLSrT0XZeITWovPkSd\nmaPGKL5wtHJ1/pV9oZRxMH+M50Wbgs5oMBQagyrvwiDAHK3vm5uXmWdFj1k+\nSFETSU8NYGGyI9mlOU5b2J6yycyHwJ+OejQdrl2drUvvfNB8euvXp1ZGNzUw\nVlMRMSHP8wrn/S1MMHdsUwzYhN3PAUTnDXvTYmHbscAHfXKS7vQPds3pXSVU\n92YBrYl83FgeVgiLLAM3aUu/F+rYSz9hY3dVDjBvNA9Ooynf+Bzr6DBq50en\ngGUn5y062PuhoiMsOdfBjijQrXbMtcDgSm+Ks+5rRCsyZSzTr15Pw+aqeCIA\nbRLSkck0T/Wup+G5aY8uMV1mPG4yLHKK8IAXac9vMOF2LwOA2kOybROv1TDX\naF/7yji15fBmxXITmykgsSXuPA5dZlNvvQBWAEO8zM5yyqMboRw0IDNOBLZD\naIU+OcMH22/LDE6TJZB6ckydplzTui76Appz4LqypWLG9QT0u6KIDQuEfbx9\nN/x3rB6DKFoByFs5k2fdXqiHoGGrPGTFkeDiUAi7NCrrdd1CC4XWjh2yRuYK\nFRXu1fi709SMfTutidYte/XxTcMFc28iAIl+yIegLZYmDtccoe0RR+Vi5RtS\nE/eE\r\n=C8+G\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGiCUAV7aVJtaAJgrIN1RtSw5wEcdsyXLJRVL2jHP/2eAiAZsQr+K4L19YdmIfxtrWxxwEktsOfU4ABynlid2J4x2Q=="}]},"_npmUser":{"name":"dapplion","email":"dapplion@giveth.io"},"directories":{},"maintainers":[{"name":"dapplion","email":"dapplion@giveth.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lodestar-spec-test-util_0.18.1_1617572643658_0.2749756441798892"},"_hasShrinkwrap":false},"0.18.2":{"name":"@dapplion/lodestar-spec-test-util","version":"0.18.2","description":"Spec test suite generator from yaml test files","author":{"name":"ChainSafe Systems"},"license":"Apache-2.0","bugs":{"url":"https://github.com/ChainSafe/lodestar/issues"},"homepage":"https://github.com/ChainSafe/lodestar#readme","main":"lib/index.js","types":"lib/index.d.ts","bin":{"eth2-spec-test-download":"lib/downloadTestsCli.js"},"scripts":{"clean":"rm -rf lib && rm -f *.tsbuildinfo","build":"concurrently \"yarn build:lib\" \"yarn build:types\"","build:release":"yarn clean && yarn build && yarn build:typedocs","build:types":"tsc -p tsconfig.build.json","build:types:watch":"yarn run build:types --watch","build:lib":"babel src -x .ts -d lib --source-maps","build:lib:watch":"yarn run build:lib --watch","build:typedocs":"typedoc --out typedocs src","check-types":"tsc","lint":"eslint --color --ext .ts src/ test/","lint:fix":"yarn run lint --fix","prepublishOnly":"yarn build","pretest":"yarn run check-types","test:e2e":"mocha 'test/e2e/**/*.test.ts'"},"repository":{"type":"git","url":"git+https://github.com/ChainSafe/lodestar.git"},"keywords":["ethereum","eth2","beacon","blockchain"],"dependencies":{"@dapplion/lodestar-utils":"^0.18.1","@chainsafe/ssz":"^0.8.0","axios":"^0.21.0","chai":"^4.2.0","mocha":"^8.1.1","rimraf":"^3.0.2","tar":"^6.0.5"},"devDependencies":{"@types/tar":"^4.0.4"},"peerDependencies":{"chai":"^4.2.0","mocha":"^8.1.1"},"_id":"@dapplion/lodestar-spec-test-util@0.18.2","_nodeVersion":"12.21.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-NCQgOO1XCivHy46uW87pZFP5/J5g52hisvaYausBDVHluuYUHa0v/1HoVEm29ch+TFec7WlCRvFLp0bp9su1Lw==","shasum":"05afd83567632ab3aa416c5deb8ccdadb9f8f3ac","tarball":"https://registry.npmjs.org/@dapplion/lodestar-spec-test-util/-/lodestar-spec-test-util-0.18.2.tgz","fileCount":24,"unpackedSize":61686,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgajQrCRA9TVsSAnZWagAA8nMQAJJjkAtoDYM3KMpMJQEk\nAHW+huFWGjywwYKgPdifI4C/U5R1HhRbsrwOC/aBxy9iKuGuIf7MWqwux+Ap\nL948HHp4SQ5LyREqJCKJq9y8tyqo7WtkH3unUUeeBmQVmFc3yVNNv7KsCTY/\nfo8kll7smZajrzpDuiD+t7ELx2AK/pviSlkHIs+bGku7RSR1D5sq2NA/0hap\n2JAEd5azEsrcf46nuygiAKDUxbWGE7NepA87N1fX2l2kFcmAm+erHJuvxamo\nDs3cK2SvyPi+r5DVGchmmnduxv3jkns/t48K638jBHc0CurABPeJHqBjRcr3\nf4k4ixr0n6gNKNCs1FHbDxMuJSMoUdcIQ0KK3+K5oSh5ohFQAR3MKh78MvOG\nVN6y5f8DKDf+TAUFf74t8bAy2pztcsVyo/178wPePaxqp5mKwReZlTdkKEfJ\n3wJqxCpoE8jZQESfajj9/jCAmx2zQdj5qTdLllll5+c4sRFJnuyoAKVL+obP\nA45SkvMLaY3fVVeQ9t/NtP5u5iR61U8MPLm1k9anjIUYc9dLH3ryYJqeUDx4\ny9MZW8t9iY9NupzW+P5yb8OjegEnj1gnwLfsMcDLEpp0prfttVnfIIFHB7Xc\nQLjNk983RZezgOCA1PZ0LnwPXR+1LoeEYEGaIhMe/RdDQaAH11L5t+fQeUHC\nxU3E\r\n=JAZv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUPadLnEMkJNrpENJr6tXqBMQ2rgIu3FmNoJuK+7jccgIhANaFTbgh+l5HqTLOytLFC6ga35hwk1USjT3dyWgEN9VR"}]},"_npmUser":{"name":"dapplion","email":"dapplion@giveth.io"},"directories":{},"maintainers":[{"name":"dapplion","email":"dapplion@giveth.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lodestar-spec-test-util_0.18.2_1617572907247_0.5447474312340397"},"_hasShrinkwrap":false},"0.18.3":{"name":"@dapplion/lodestar-spec-test-util","version":"0.18.3","description":"Spec test suite generator from yaml test files","author":{"name":"ChainSafe Systems"},"license":"Apache-2.0","bugs":{"url":"https://github.com/ChainSafe/lodestar/issues"},"homepage":"https://github.com/ChainSafe/lodestar#readme","main":"lib/index.js","types":"lib/index.d.ts","bin":{"eth2-spec-test-download":"lib/downloadTestsCli.js"},"scripts":{"clean":"rm -rf lib && rm -f *.tsbuildinfo","build":"concurrently \"yarn build:lib\" \"yarn build:types\"","build:release":"yarn clean && yarn build && yarn build:typedocs","build:types":"tsc -p tsconfig.build.json","build:types:watch":"yarn run build:types --watch","build:lib":"babel src -x .ts -d lib --source-maps","build:lib:watch":"yarn run build:lib --watch","build:typedocs":"typedoc --out typedocs src","check-types":"tsc","lint":"eslint --color --ext .ts src/ test/","lint:fix":"yarn run lint --fix","pretest":"yarn run check-types","test:e2e":"mocha 'test/e2e/**/*.test.ts'"},"repository":{"type":"git","url":"git+https://github.com/ChainSafe/lodestar.git"},"keywords":["ethereum","eth2","beacon","blockchain"],"dependencies":{"@dapplion/lodestar-utils":"^0.18.1","@chainsafe/ssz":"^0.8.0","axios":"^0.21.0","chai":"^4.2.0","mocha":"^8.1.1","rimraf":"^3.0.2","tar":"^6.0.5"},"devDependencies":{"@types/tar":"^4.0.4"},"peerDependencies":{"chai":"^4.2.0","mocha":"^8.1.1"},"_id":"@dapplion/lodestar-spec-test-util@0.18.3","_nodeVersion":"12.21.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-Gorr2+riSxKHB6Tdxo8uNIWzsNKRUhg8hGW/1zd4unjLxke2nO8kJCDr9pNJ74C9UP80UzTG5NyPMMsSFsWo0w==","shasum":"cff92020db0fc0115e5a31f4306ebffe341e4016","tarball":"https://registry.npmjs.org/@dapplion/lodestar-spec-test-util/-/lodestar-spec-test-util-0.18.3.tgz","fileCount":24,"unpackedSize":61650,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgajbOCRA9TVsSAnZWagAAIggP/0gkLfAt3AR7nPs2pDP1\n37rqY/jZxo9KZlX6gfLxQ+bEnTyWJvcnWrzovZnhZ5btGhK7CAbvvA+QKb5e\nngumokiqWBHH1n2A+7pDTu0+TegeSkyGcf1mHL3hB1uJgny/6RwQ9TTBTY8V\nb250kzb02pxmGg+LV0pT4Z8/Z5MppC+AkaviFZ7qHpClSFYf/A1Nf+i1jdh6\ng1pwxkjNQctsw1FwvOrv9jegd1WK8XZ0TkJ69FfuGJTNxRWwPC+iOTqaZQQg\nlvWZvM2tAXcLXSPW6kRpU7dMjNrut9AnRUv6/p+PM3++pbp1It8AlVcknNgU\nq1lYY6Pbuo45VbAsw91COGaUA7cdWKIEnh+3JHTNJsMkl3I3ke5b49ySbuu0\nK0zCLLsryO7KbeLBL3HZb4+3hyDM/tXeObPMOOKSOgB06cxAs1rMDLbUbw7e\nLvwEGMiW2pt/4oH9leDl8EU52oAV5PVJQify1CqnqB6wgVn1uKy15fkdmqij\njUmNXgJoj8d/bVbAuJmJcoaz20rJLwdaINxkq7VBtG+eCayFIoKykubuzQmr\nLdytg2KfWzk0RW/I1rR9lfSxY3GhvaIoX6y7ts2Fiw8brPjtGsl8m0DYarKH\nlz3trkua2kyUFI0ZYC+r+jBnlTueYf7V9lXiKyfAP/Ld1zg9d8c35xSKe49l\nrLKK\r\n=PXdC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD75DZuuHXqYgzbE2NaNbAeZLqzSinR4Z7JHmpX22pqTwIgfYwuh72koyrmKovIlRPUXIjU7c7Z0xw1FzO77pySA1A="}]},"_npmUser":{"name":"dapplion","email":"dapplion@giveth.io"},"directories":{},"maintainers":[{"name":"dapplion","email":"dapplion@giveth.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lodestar-spec-test-util_0.18.3_1617573581655_0.5968443353187209"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-04T21:44:03.589Z","0.18.1":"2021-04-04T21:44:03.780Z","modified":"2022-04-05T02:44:05.527Z","0.18.2":"2021-04-04T21:48:27.393Z","0.18.3":"2021-04-04T21:59:41.839Z"},"maintainers":[{"name":"dapplion","email":"dapplion@giveth.io"}],"description":"Spec test suite generator from yaml test files","homepage":"https://github.com/ChainSafe/lodestar#readme","keywords":["ethereum","eth2","beacon","blockchain"],"repository":{"type":"git","url":"git+https://github.com/ChainSafe/lodestar.git"},"author":{"name":"ChainSafe Systems"},"bugs":{"url":"https://github.com/ChainSafe/lodestar/issues"},"license":"Apache-2.0","readme":"# lodestar-spec-test-util\n\n> This package is part of [ChainSafe's Lodestar](https://lodestar.chainsafe.io) project\n\nMocha / Chai utility for interacting with eth2.0 spec tests\n\n## API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n### describeSpecTest\n\nRun yaml Eth2.0 spec tests for a certain function\nCompares actual vs expected for all test cases\n\n#### Parameters\n\n- `testYamlPath` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** path to yaml spec test\n- `testFunc` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** function to use to generate output\n- `getInput` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** function to convert test case into input array (optional, default `testCase=>testCase.input`)\n- `getExpected` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** function to convert test case into a comparable expected output (optional, default `testCase=>testCase.output`)\n- `getActual` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** function to convert function output into comparable actual output (optional, default `result=>result`)\n- `shouldError` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** function to convert test case into a boolean, if the case should result in an error (optional, default `(testCase,index,testSpec)=>false`)\n- `shouldSkip` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** function to convert test case into a boolean, if the case should be skipped (optional, default `(testCase,index,testSpec)=>false`)\n- `expectFunc` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** function to run expectations against expected and actual output (optional, default `(testCase,expect,expected,actual)=>expect(actual).to.be.equal(expected)`)\n\n## Profiling\n\nSet env variable GEN_PROFILE_DIR with path to directory where you wish your cpu profiles to be generated.\n\n## License\n\nApache-2.0 [ChainSafe Systems](https://chainsafe.io)\n","readmeFilename":"README.md"}