Fix mocha test running (#600)

PR #591 broke the build.
This commit is contained in:
Andrew Eisenberg
2020-09-29 13:34:51 -07:00
committed by GitHub
parent 7e4491ac45
commit 0c571b1942
3 changed files with 9 additions and 9 deletions

View File

@@ -304,9 +304,9 @@
"integrity": "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA=="
},
"@types/mocha": {
"version": "5.2.7",
"resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-5.2.7.tgz",
"integrity": "sha512-NYrtPht0wGzhwe9+/idPaBB+TqkY9AhTvOLMkThm0IoEfLaiVQZwBwyJ5puCkO3AUCWrmcoePjp2mbFocKy4SQ==",
"version": "8.0.3",
"resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-8.0.3.tgz",
"integrity": "sha512-vyxR57nv8NfcU0GZu8EUXZLTbCMupIUwy95LJ6lllN+JRPG25CwMHoB1q5xKh8YKhQnHYRAn4yW2yuHbf/5xgg==",
"dev": true
},
"@types/node": {

View File

@@ -685,7 +685,7 @@
"@types/gulp-sourcemaps": "0.0.32",
"@types/js-yaml": "~3.12.2",
"@types/jszip": "~3.1.6",
"@types/mocha": "~5.2.7",
"@types/mocha": "~8.0.3",
"@types/node": "^12.0.8",
"@types/node-fetch": "~2.5.2",
"@types/proxyquire": "~1.3.28",

View File

@@ -29,9 +29,9 @@ import * as glob from 'glob';
export function runTestsInDirectory(testsRoot: string): Promise<void> {
// Create the mocha test
const mocha = new Mocha({
ui: 'bdd'
ui: 'bdd',
color: true
});
mocha.useColors(true);
return new Promise((c, e) => {
console.log(`Adding test cases from ${testsRoot}`);