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