How to use the kcd-scripts/config.jest function in kcd-scripts

To help you get started, we’ve selected a few kcd-scripts 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 downshift-js / downshift / other / misc-tests / jest.config.js View on Github external
const jestConfig = require('kcd-scripts/config').jest
const babelHelpersList = require('@babel/helpers').list

module.exports = Object.assign(jestConfig, {
  roots: ['.'],
  testEnvironment: 'jsdom',
  moduleNameMapper: babelHelpersList.reduce((aliasMap, helper) => {
    aliasMap[
      `@babel/runtime/helpers/esm/${helper}`
    ] = `@babel/runtime/helpers/${helper}`
    return aliasMap
  }, {}),
})
github sastan / react-render-callback / other / misc-tests / jest.config.js View on Github external
const jestConfig = require('kcd-scripts/config').jest

module.exports = Object.assign(jestConfig, {
  displayName: 'react-render-callback',
  roots: ['.'],
  testEnvironment: 'jsdom',
  transformIgnorePatterns: [],
})
github paypal / glamorous / other / jest.config.js View on Github external
const jestConfig = require('kcd-scripts/config').jest

module.exports = Object.assign(jestConfig, {
  roots: ['.'],
  testURL: 'http://localhost',
  testEnvironment: 'jsdom',
})