Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
#! /usr/bin/env node
/*---------------------------------------------------------------------------------------------
* Copyright (c) 2019 Bentley Systems, Incorporated. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license terms.
*--------------------------------------------------------------------------------------------*/
const program = require("commander");
const floss = require("../floss");
const paths = require("@bentley/build-tools/scripts/config/paths");
const isCI = (process.env.TF_BUILD);
const reporterOptions = (isCI) ? {
reporter: "mocha-junit-reporter",
reporterOptions: `mochaFile=${paths.appJUnitTestResults}`
} : {
reporter: "spec"
};
program
.version("0.1.0")
.description("imodeljs-core-testbed")
.option('-d, --debug', 'Launch electron in debug mode')
.option('--no-dev-tools', 'Do not automatically open Chrome Developer Tools in debug mode')
.option('-g, --grep