microsoft/vscode-react-native

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
b2b5d016a126b337e01405c6006a069da028e0bf

Branches

Tags

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

Clone

HTTPS

Download ZIP

test/localization/index.ts

27lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT license. See LICENSE file in the project root for details.
3
4// This file is used by VS Code's default test runner to configure Mocha before the test run.
5
6/* tslint:disable:no-var-keyword no-var-requires */
7var testRunner = require("vscode/lib/testrunner");
8/* tslint:enable:no-var-keyword no-var-requires */
9import * as path from "path";
10
11let mochaOption: any = {
12 ui: "tdd",
13 useColors: true,
14 grep: "localizationContext",
15 reporter: "mocha-multi-reporters",
16 reporterOptions: {
17 reporterEnabled: "spec, mocha-junit-reporter",
18 mochaJunitReporterReporterOptions: {
19 mochaFile: path.join(__dirname, "..", "LocalizationTests.xml"),
20 },
21 },
22};
23
24// Register Mocha options
25testRunner.configure(mochaOption);
26
27module.exports = testRunner;
28