Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const { createJestConfig } = require('@craco/craco');
const cracoConfig = require('../../craco.config.js');
const jestConfig = createJestConfig(cracoConfig);
module.exports = {
...jestConfig,
preset: 'jest-puppeteer',
testMatch: ['/src/**/__puppeteer__/**/*.test.{js,jsx,ts,tsx}'],
setupFilesAfterEnv: [...jestConfig.setupFilesAfterEnv, 'expect-puppeteer'],
testPathIgnorePatterns: ['node_modules']
};