6
extensions/ql-vscode/package-lock.json
generated
6
extensions/ql-vscode/package-lock.json
generated
@@ -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": {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -5,13 +5,13 @@ import * as glob from 'glob';
|
||||
/**
|
||||
* Helper function that runs all Mocha tests found in the
|
||||
* given test root directory.
|
||||
*
|
||||
*
|
||||
* For each integration test suite, `vscode-test` expects
|
||||
* a test runner script exporting a function with the signature:
|
||||
* ```ts
|
||||
* export function run(): Promise<void>
|
||||
* ```
|
||||
*
|
||||
*
|
||||
* To create an integration test suite:
|
||||
* - create a directory beside this file
|
||||
* - create integration tests in the directory, named `<name>.test.ts`
|
||||
@@ -22,16 +22,16 @@ import * as glob from 'glob';
|
||||
* return runTestsInDirectory(__dirname);
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
*
|
||||
* After https://github.com/microsoft/TypeScript/issues/420 is implemented,
|
||||
* this pattern can be expressed more neatly using a module interface.
|
||||
*/
|
||||
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}`);
|
||||
|
||||
Reference in New Issue
Block a user