42a8715471
- Adds a local environment based on docker - Adds the e2e tests setup - Adds a "Hello World" e2e test to serve as a template Props gziolo, herregroen, mcsf. Fixes #45165. git-svn-id: https://develop.svn.wordpress.org/trunk@45570 602fd350-edb4-49c9-b593-d223f7449a82
24 lines
492 B
JavaScript
24 lines
492 B
JavaScript
const path = require( 'path' );
|
|
|
|
const jestE2EConfig = {
|
|
preset: 'jest-puppeteer',
|
|
setupFilesAfterEnv: [
|
|
'<rootDir>/config/bootstrap.js',
|
|
],
|
|
testMatch: [
|
|
'<rootDir>/specs/**/__tests__/**/*.js',
|
|
'<rootDir>/specs/**/?(*.)(spec|test).js',
|
|
'<rootDir>/specs/**/test/*.js',
|
|
],
|
|
transform: {
|
|
'^.+\\.[jt]sx?$': path.join( __dirname, 'babel-transform' ),
|
|
},
|
|
transformIgnorePatterns: [
|
|
'node_modules',
|
|
'scripts/config/puppeteer.config.js',
|
|
],
|
|
};
|
|
|
|
|
|
module.exports = jestE2EConfig;
|