Skip to content
This repository was archived by the owner on Dec 10, 2020. It is now read-only.

Commit 819066c

Browse files
committed
rename exectuable test files to .spec.ts
1 parent 3f8e6bc commit 819066c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+10
-10
lines changed

karma.conf.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ module.exports = function (config) {
22
config.set({
33
frameworks: ['karma-typescript', 'tap'],
44

5-
files: ['test/**/*.ts', 'lib/**/*.ts'],
5+
files: ['lib/**/*.ts', 'test/blockchain/chain.spec.ts'],
66

77
preprocessors: {
8-
'**/*.ts': ['karma-typescript']
8+
'**/*.ts': ['karma-typescript'],
99
},
1010

1111
reporters: ['progress'],
1212

1313
karmaTypescriptConfig: {
1414
bundlerOptions: {
15-
entrypoints: /\.spec\.ts$/
15+
entrypoints: /\.spec\.ts$/,
1616
},
17-
tsconfig: "./tsconfig.karma.json",
17+
tsconfig: './tsconfig.karma.json',
1818
},
1919

2020
browsers: ['FirefoxHeadless', 'ChromeHeadless'],
@@ -31,6 +31,6 @@ module.exports = function (config) {
3131

3232
// Fail after timeout
3333
browserDisconnectTimeout: 100000,
34-
browserNoActivityTimeout: 100000
34+
browserNoActivityTimeout: 100000,
3535
})
3636
}

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
"bundle": "webpack",
2020
"client:start": "tsc -p tsconfig.prod.json && node dist/bin/cli.js",
2121
"coverage": "nyc npm run coverage:test && nyc report --reporter=lcov",
22-
"coverage:test": "tape -r ts-node/register 'test/!(integration)/**/*.ts' 'test/integration/**/*.ts'",
22+
"coverage:test": "tape -r ts-node/register 'test/**/*.spec.ts'",
2323
"docs:build": "typedoc --tsconfig tsconfig.prod.json",
2424
"lint": "ethereumjs-config-lint",
2525
"lint:fix": "ethereumjs-config-lint-fix",
2626
"tape": "tape -r ts-node/register",
27-
"test": "npm run test:unit && npm run test:integration",
28-
"test:unit": "npm run tape -- 'test/!(integration)/**/*.ts'",
29-
"test:integration": "npm run tape -- 'test/integration/**/*.ts'",
27+
"test": "npm run tape -- 'test/**/*.spec.ts'",
28+
"test:unit": "npm run tape -- 'test/!(integration)/**/*.spec.ts'",
29+
"test:integration": "npm run tape -- 'test/integration/**/*.spec.ts'",
3030
"test:browser": "karma start karma.conf.js"
3131
},
3232
"husky": {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)