module.exports = { ...require( '@wordpress/scripts/config/jest-e2e.config' ), rootDir: '../../../', // Automatically clear mock calls and instances between every test clearMocks: true, moduleNameMapper: { '@woocommerce/blocks-test-utils': '/tests/utils', }, reporters: [ 'default', [ 'jest-html-reporters', { publicPath: './reports/e2e', filename: 'index.html' }, ], ], testEnvironment: '/tests/e2e/config/environment.js', testRunner: 'jest-circus/runner', // Where to look for test files roots: [ '/tests/e2e/specs' ], globalSetup: '/tests/e2e/config/setup.js', globalTeardown: '/tests/e2e/config/teardown.js', setupFiles: [], // A list of paths to modules that run some code to configure or set up the testing framework // before each test setupFilesAfterEnv: [ '/tests/e2e/config/custom-matchers/index.js', '/tests/e2e/config/jest.setup.js', 'expect-puppeteer', ], testPathIgnorePatterns: [ '/tests/e2e/specs/performance' ], transformIgnorePatterns: [ 'node_modules/(?!(woocommerce)/)' ], };