Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// @wordpress/scripts manually adds additional Jest config ontop of
// @wordpress/jest-preset-default so we pull in this file to extend it
const defaults = require( '@wordpress/scripts/config/jest-unit.config.js' );
module.exports = {
...defaults,
setupFilesAfterEnv: [
...( defaults.setupFilesAfterEnv || [] ), // extend if present
'/test/client/test-setup',
],
};