Merge pull request #84 from ChainSafe/dapplion/use-mocharc

Use mocharc
This commit is contained in:
Cayman 2021-04-05 08:47:41 -05:00 committed by GitHub
commit 3ca1e26843
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

2
.mocharc.yml Normal file
View File

@ -0,0 +1,2 @@
colors: true
require: ts-node/register

View File

@ -31,9 +31,9 @@
"lint:fix": "yarn run lint --fix",
"prepublishOnly": "yarn build",
"test:web": "karma start",
"test:unit": "mocha --colors -r ts-node/register 'test/unit/**/*.test.ts'",
"test:coverage": "nyc --cache-dir .nyc_output/.cache -r lcov -e .ts mocha --colors -r ts-node/register 'test/unit/**/*.test.ts' && nyc report",
"test:spec": "mocha --colors -r ts-node/register 'test/spec/**/*.test.ts'",
"test:unit": "mocha 'test/unit/**/*.test.ts'",
"test:coverage": "nyc --cache-dir .nyc_output/.cache -r lcov -e .ts mocha 'test/unit/**/*.test.ts' && nyc report",
"test:spec": "mocha 'test/spec/**/*.test.ts'",
"test": "yarn run test:unit && yarn run test:spec",
"download-test-cases": "ts-node test/downloadSpecTests.ts",
"coverage": "codecov -F bls",
@ -47,7 +47,7 @@
},
"devDependencies": {
"@chainsafe/blst": "^0.1.6",
"@chainsafe/lodestar-spec-test-util": "^0.12.0",
"@chainsafe/lodestar-spec-test-util": "^0.18.0",
"@types/chai": "^4.2.9",
"@types/mocha": "^8.0.4",
"@types/randombytes": "^2.0.0",