How to use the terra-toolkit/config/wdio/wdio.conf.js.config function in terra-toolkit

To help you get started, we’ve selected a few terra-toolkit examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cerner / terra-core / wdio.conf.fusion.theme.js View on Github external
const fs = require('fs');
const path = require('path');
/* eslint-disable-next-line import/no-extraneous-dependencies */
const toolkitWdio = require('terra-toolkit/config/wdio/wdio.conf.js');
const themeHelpers = require('terra-toolkit/lib/wdio/services/TerraCommands/theme-helpers');

const config = {
  ...toolkitWdio.config,
  baseScreenshotDir: './tests/wdio/theme/orion-fusion-theme/__snapshots__',
  before: function (suite) {
    themeHelpers.setTheme('orion-fusion-theme');
  }
};

exports.config = config;