diff options
author | Bastian Köcher <[email protected]> | 2019-08-25 16:50:46 +0100 |
---|---|---|
committer | Bastian Köcher <[email protected]> | 2019-08-26 07:22:48 +0100 |
commit | b58f84626f2976e6dd7f9dad6627e21b352dee84 (patch) | |
tree | 76e5d97a9f4ce58b9cb877bf6b1944cbdabd228f /editors/code/src/test/index.ts | |
parent | 0c35d82329bc0952bd179ec37933c0955fd5ed26 (diff) |
Switch to `@types/vscode` and `vscode-test`
The old `vscode` package is outdated and it is recommened to switch to
these two new packages. This also solves a problem of a missing `.d.ts`
for `vscode` in Nixos.
Diffstat (limited to 'editors/code/src/test/index.ts')
-rw-r--r-- | editors/code/src/test/index.ts | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/editors/code/src/test/index.ts b/editors/code/src/test/index.ts deleted file mode 100644 index 6e565c254..000000000 --- a/editors/code/src/test/index.ts +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | // | ||
2 | // PLEASE DO NOT MODIFY / DELETE UNLESS YOU KNOW WHAT YOU ARE DOING | ||
3 | // | ||
4 | // This file is providing the test runner to use when running extension tests. | ||
5 | // By default the test runner in use is Mocha based. | ||
6 | // | ||
7 | // You can provide your own test runner if you want to override it by exporting | ||
8 | // a function run(testRoot: string, clb: (error:Error) => void) that the extension | ||
9 | // host can call to run the tests. The test runner is expected to use console.log | ||
10 | // to report the results back to the caller. When the tests are finished, return | ||
11 | // a possible error to the callback or null if none. | ||
12 | |||
13 | import * as testRunner from 'vscode/lib/testrunner'; | ||
14 | |||
15 | // You can directly control Mocha options by uncommenting the following lines | ||
16 | // See https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically#set-options for more info | ||
17 | testRunner.configure({ | ||
18 | ui: 'bdd', // the TDD UI is being used in extension.test.ts (suite, test, etc.) | ||
19 | useColors: true // colored output from test results | ||
20 | }); | ||
21 | |||
22 | module.exports = testRunner; | ||