From e81764f7105775b7280f4956df683284d5baac9c Mon Sep 17 00:00:00 2001 From: dapplion <35266934+dapplion@users.noreply.github.com> Date: Sun, 4 Apr 2021 23:00:37 +0200 Subject: [PATCH] Use mocharc --- .mocharc.yml | 2 ++ package.json | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 .mocharc.yml diff --git a/.mocharc.yml b/.mocharc.yml new file mode 100644 index 0000000..b2f7bef --- /dev/null +++ b/.mocharc.yml @@ -0,0 +1,2 @@ +colors: true +require: ts-node/register diff --git a/package.json b/package.json index b35b434..09ecb42 100644 --- a/package.json +++ b/package.json @@ -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",