microsoft/vscode-react-native

Public

mirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
db80cd4e10b83524bc77c15018effab72cbabeb8

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/test/index.ts

22lines · modecode

1// This file is used by VS Code's default test runner to configure Mocha before the test run.
2
3/* tslint:disable:no-var-keyword no-var-requires */
4var testRunner = require("vscode/lib/testrunner");
5/* tslint:enable:no-var-keyword no-var-requires */
6
7let mochaOptions: any = {
8 ui: "tdd",
9 useColors: true,
10 invert: true,
11 grep: "debuggerContext" // Do not run tests intended for the debuggerContext
12};
13
14// Look for the env variable to decide wheter to use the TeamCity reporter or not
15if (process.env.VSCODE_REACT_NATIVE_TEAMCITY_TEST) {
16 mochaOptions.reporter = "mocha-teamcity-reporter";
17}
18
19// Register Mocha options
20testRunner.configure(mochaOptions);
21
22module.exports = testRunner;