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-dev-site/config/wdio/wdio.conf');
const webpackConfig = require('./webpack.config');
const config = {
...wdioConf.config,
webpackConfig,
// Configuration for SeleniumDocker service
seleniumDocker: {
enabled: !process.env.TRAVIS,
},
};
exports.config = config;
const mergedConfig = (env, argv) => (
merge(defaultWebpackConfig(env, argv), coreConfig())
);
const webpackConfig = (env, argv) => {
const config = defaultWebpackConfig(env, argv);
const propsTable = path.resolve(path.join(process.cwd(), 'node_modules', 'terra-props-table'));
const momentAlias = path.resolve(path.join(process.cwd(), 'node_modules', 'moment'));
const intl = path.resolve(path.join(process.cwd(), 'node_modules', 'intl'));
const terraMarkdown = path.resolve(path.join(process.cwd(), 'node_modules', 'terra-markdown'));
const terraDatePicker = path.resolve(path.join(process.cwd(), 'node_modules', 'terra-date-picker'));
const resizeObserver = path.resolve(path.join(process.cwd(), 'node_modules', 'resize-observer-polyfill'));
const reactRouterDom = path.resolve(path.join(process.cwd(), 'node_modules', 'react-router-dom'));
const babelRuntime = path.resolve(path.join(process.cwd(), 'node_modules', 'babel-runtime'));
const terraButton = path.resolve(path.join(process.cwd(), 'node_modules', 'terra-button'));
config.stats = 'normal';
config.resolve.alias = {};
config.resolve.alias['terra-props-table'] = propsTable;
config.resolve.alias['terra-markdown'] = terraMarkdown;
config.resolve.alias['terra-date-picker'] = terraDatePicker;