Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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
}, {}),
})
const jestConfig = require('kcd-scripts/config').jest
module.exports = Object.assign(jestConfig, {
displayName: 'react-render-callback',
roots: ['.'],
testEnvironment: 'jsdom',
transformIgnorePatterns: [],
})
const jestConfig = require('kcd-scripts/config').jest
module.exports = Object.assign(jestConfig, {
roots: ['.'],
testURL: 'http://localhost',
testEnvironment: 'jsdom',
})