Skip to content

Commit a652224

Browse files
committed
exclude unit tests
1 parent d4aa044 commit a652224

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.mocharc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"ui": "bdd",
33
"timeout": 15000,
44
"extension": ["ts"],
5-
"spec": ["test/integration/*Spec.ts"],
5+
"spec": ["'test/integration/*Spec.ts'"],
66
"require": ["ts-node/register", "test/hooks.ts"],
77
"package": "./package.json"
88
}

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,14 @@
55
"main": "./dist/index",
66
"types": "./dist/index",
77
"directories": {
8-
"test": "tests"
8+
"test": "test"
99
},
1010
"files": [
1111
"dist",
1212
"lib"
1313
],
1414
"scripts": {
15-
"test": "npm run test:unit",
16-
"test:unit": "TS_NODE_PROJECT=test/tsconfig.json mocha --require ts-node/register \"test/unit/**/*Spec.ts\"",
17-
"test:integration": "TS_NODE_PROJECT=test/tsconfig.json mocha --require ts-node/register \"test/integration/**/*Spec.ts\"",
15+
"test": "mocha",
1816
"build": "rm -rf dist/ && tsc && echo Done",
1917
"docs": "./node_modules/.bin/typedoc --mode file --name 'Payment Rails JavaScript SDK' --readme none --theme markdown --out docs --hideGenerator lib",
2018
"clean": "rm -rf dist/"

0 commit comments

Comments
 (0)