Package Exports
- @codeceptjs/configure
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@codeceptjs/configure) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Configuring CodeceptJS with Hooks
This package container useful hooks to solve common configuration issues:
useHeadlessWhen
This hook enables headless mode for Puppeteer, WebDriver, TestCafe, and Nightmare.
Usage:
const { useHeadlessWhen } = require('@codeceptjs/configure');
// enable headless only if environment variable HEADLESS exist
useHeadlessWhen(process.env.HEADLESS);
// enable headless on CI
useHeadlessWhen(process.env.CI);
exports.config = {
helpers: {
// standard config goes here
}
}