Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Commit

Permalink
convert mocha to tape
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanio committed Mar 4, 2021
1 parent b100d13 commit 35f1747
Show file tree
Hide file tree
Showing 13 changed files with 1,136 additions and 1,053 deletions.
5 changes: 1 addition & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
module.exports = {
extends: '@ethereumjs/eslint-config-defaults',
env: {
mocha: true
}
extends: '@ethereumjs/eslint-config-defaults'
}
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- run: npm install

- run: npm run lint
- run: npm run test
- run: npm run coverage

- uses: codecov/codecov-action@v1
if: matrix.node-version == '12.x'
Expand Down
5 changes: 2 additions & 3 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
module.exports = function(config) {
config.set({
frameworks: ['mocha', 'karma-typescript'],
frameworks: ['tap', 'karma-typescript'],
files: ['src/**/*.ts', 'test/**/*.ts'],
preprocessors: {
'**/*.ts': ['karma-typescript']
},
plugins: ['karma-mocha', 'karma-typescript', 'karma-chrome-launcher', 'karma-firefox-launcher'],
karmaTypescriptConfig: {
bundlerOptions: {
entrypoints: /\.spec\.ts$/
Expand All @@ -16,7 +15,7 @@ module.exports = function(config) {
reporters: ['progress', 'karma-typescript'],
browsers: ['FirefoxHeadless', 'ChromeHeadless'],
singleRun: true,
concurrency: Infinity,
concurrency: 1,
// Fail after timeout
browserDisconnectTimeout: 100000,
browserNoActivityTimeout: 100000
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@
"scripts": {
"build": "ethereumjs-config-ts-build",
"prepublishOnly": "npm run test && npm run build",
"coverage": "ethereumjs-config-coverage",
"docs:build": "npx typedoc --options typedoc.js",
"lint": "ethereumjs-config-lint",
"lint:fix": "ethereumjs-config-lint-fix",
"test": "npm run test:node && npm run test:browser",
"test:browser": "karma start karma.conf.js",
"test:node": "nyc --reporter=lcov mocha --require ts-node/register 'test/*.spec.ts'",
"test:node": "tape -r ts-node/register test/*.spec.ts",
"tsc": "ethereumjs-config-tsc"
},
"husky": {
Expand Down Expand Up @@ -97,18 +98,18 @@
"@ethereumjs/config-typescript": "^2.0.0",
"@ethereumjs/eslint-config-defaults": "^2.0.0",
"@types/assert": "^1.5.4",
"@types/mocha": "^8.2.0",
"@types/node": "^11.9.0",
"@types/secp256k1": "^4.0.1",
"@types/tape": "^4.13.0",
"husky": "^2.1.0",
"karma": "^5.0.2",
"karma-chrome-launcher": "^2.0.0",
"karma-firefox-launcher": "^1.0.0",
"karma-mocha": "^2.0.0",
"karma-tap": "^4.2.0",
"karma-typescript": "^4.1.1",
"mocha": "^8.2.1",
"nyc": "^15.0.0",
"prettier": "^1.15.3",
"tape": "^5.2.2",
"ts-node": "^8.6.2",
"typedoc": "next",
"typedoc-plugin-markdown": "^2.2.16",
Expand Down
Loading

0 comments on commit 35f1747

Please sign in to comment.