Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/* eslint-disable import/no-extraneous-dependencies */
const wdioConf = require('terra-toolkit/lib/wdio/conf');
const ExpressDevService = require('terra-toolkit/lib/wdio/services/index').ExpressDevService;
const localIP = require('ip');
const path = require('path');
const webpackConfig = require('terra-dev-site/src/config/webpack.config.js');
const webpackPort = 8080;
// Flex specs search between local pacakge and repo
let specs = path.join('tests', 'wdio', '**', '*-spec.js');
if (__dirname === process.cwd()) {
specs = path.join('packages', '*', specs);
}
const config = {
...wdioConf.config,
baseUrl: `http://${localIP.address()}:${webpackPort}`,
/* eslint-disable import/no-extraneous-dependencies */
const wdioConf = require('terra-toolkit/lib/wdio/conf');
const webpackConfig = require('./webpack.config.js');
const ExpressDevService = require('terra-toolkit/lib/wdio/services/index').ExpressDevService;
const localIP = require('ip');
const path = require('path');
const webpackPort = 8080;
const isRepoTest = __dirname === process.cwd();
// Flex specs search between local pacakge and repo
let specs = path.join('tests', 'wdio', '**', '*-spec.js');
if (isRepoTest) {
specs = path.join('packages', 'terra-*', specs);
}
const config = {
...wdioConf.config,
baseUrl: `http://${localIP.address()}:${webpackPort}`,
specs: [specs],