microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
c5d308e47ff644d5ded8339fff0d80dc013275a8

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/test/index.ts

20lines · 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};
11
12// Look for the env variable to decide wheter to use the TeamCity reporter or not
13if (process.env.VSCODE_REACT_NATIVE_TEAMCITY_TEST) {
14 mochaOptions.reporter = "mocha-teamcity-reporter";
15}
16
17// Register Mocha options
18testRunner.configure(mochaOptions);
19
20module.exports = testRunner;