microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
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 */ |
| 7 | var testRunner = require("vscode/lib/testrunner"); |
| 8 | /* tslint:enable:no-var-keyword no-var-requires */ |
| 9 | import * as path from "path"; |
| 10 | |
| 11 | let 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 |
| 25 | testRunner.configure(mochaOption); |
| 26 | |
| 27 | module.exports = testRunner; |
| 28 | |