simplify e2e-environment exports

This commit is contained in:
Ron Rennick 2020-10-21 16:17:10 -03:00
parent e91a09f302
commit 9d47a1c072
1 changed files with 9 additions and 42 deletions

View File

@ -3,50 +3,17 @@
*/
const babelConfig = require( './babel.config' );
const esLintConfig = require( './.eslintrc.js' );
const {
jestConfig,
jestPuppeteerConfig,
useE2EBabelConfig,
useE2EEsLintConfig,
useE2EJestConfig,
useE2EJestPuppeteerConfig,
} = require( './config' );
const { getAppRoot, getTestConfig } = require( './utils' );
const {
clickAndWaitForNewPage,
getAccountCredentials,
isEventuallyPresent,
isEventuallyVisible,
logDebugLog,
logHTML,
waitAndClick,
waitAndType,
waitForSelector,
scrollIntoView,
Page
} = require( '@automattic/puppeteer-utils' );
const allE2EConfig = require( './config' );
const allE2EUtils = require( './utils' );
/**
* External dependencies
*/
const allPuppeteerUtils = require( '@automattic/puppeteer-utils' );
module.exports = {
babelConfig,
esLintConfig,
jestConfig,
jestPuppeteerConfig,
useE2EBabelConfig,
useE2EEsLintConfig,
useE2EJestConfig,
useE2EJestPuppeteerConfig,
getAppRoot,
getTestConfig,
clickAndWaitForNewPage,
getAccountCredentials,
isEventuallyPresent,
isEventuallyVisible,
logDebugLog,
logHTML,
waitAndClick,
waitAndType,
waitForSelector,
scrollIntoView,
Page,
...allE2EConfig,
...allE2EUtils,
...allPuppeteerUtils,
};