Edit file File name : jest.config.js Content :const baseConfig = require( 'jetpack-js-tools/jest/config.base.js' ); module.exports = { ...baseConfig, roots: [ '<rootDir>/src' ], transform: { ...baseConfig.transform, '\\.[jt]sx?$': require( 'jetpack-js-tools/jest/babel-jest-config-factory.js' )( require.resolve ), }, moduleDirectories: [ 'node_modules', '<rootDir>/src/dashboard' ], }; Save