Commit 2c3f50e9 authored by timkinnane's avatar timkinnane

chore(tests): Move mocha opts to default path

+ Add some configs for Wallaby.js and Spellchecker
parent e682df6c
......@@ -12,5 +12,9 @@
"reporter": "list"
},
"coverage-gutters.showGutterCoverage": true,
"eslint.packageManager": "yarn"
"eslint.packageManager": "yarn",
"cSpell.words": [
"groupable",
"msgs"
]
}
\ No newline at end of file
......@@ -26,10 +26,10 @@
},
"scripts": {
"pretest": "tslint -p .",
"test": "nyc mocha --opts ./mocha.opts './src/lib/**/*.spec.ts'",
"test:hook": "mocha --opts ./mocha.opts './**/*.spec.ts'",
"test:debug": "mocha --opts ./mocha.opts --inspect --debug-brk 'src/**/*.spec.ts'",
"test:package": "preview && mocha --opts ./mocha.opts 'src/index.spec.ts'",
"test": "nyc mocha './src/lib/**/*.spec.ts'",
"test:hook": "mocha './**/*.spec.ts'",
"test:debug": "mocha --inspect --debug-brk 'src/**/*.spec.ts'",
"test:package": "preview && mocha 'src/index.spec.ts'",
"docs": "rimraf ./docs/*; typedoc --options ./typedoc.json ./src/lib",
"prebuild": "npm run test",
"build": "rimraf ./dist/* && tsc && npm run test:package && npm run docs"
......@@ -42,6 +42,7 @@
"devDependencies": {
"@types/chai": "^4.1.2",
"@types/mocha": "^2.2.48",
"@types/sinon": "^4.3.0",
"chai": "^4.1.2",
"commitizen": "^2.9.6",
"cz-conventional-changelog": "^2.1.0",
......
......@@ -15,6 +15,9 @@ module.exports = function (wallaby) {
'**/*.ts?(x)': wallaby.compilers.typeScript({ module: 'commonjs' })
},
debug: true,
slowTestThreshold: 200
slowTestThreshold: 200,
delays: {
run: 1000
}
}
}
\ No newline at end of file
......@@ -113,6 +113,10 @@
"@types/glob" "*"
"@types/node" "*"
"@types/sinon@^4.3.0":
version "4.3.0"
resolved "https://registry.yarnpkg.com/@types/sinon/-/sinon-4.3.0.tgz#7f53915994a00ccea24f4e0c24709822ed11a3b1"
"@types/write-json-file@^2.2.1":
version "2.2.1"
resolved "https://registry.yarnpkg.com/@types/write-json-file/-/write-json-file-2.2.1.tgz#74155aaccbb0d532be21f9d66bebc4ea875a5a62"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment