Skip to content

Commit

Permalink
Scripts: Increase timeout for e2e tests (#35983)
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Oct 27, 2021
1 parent fb42d94 commit 92bf5e6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 4 additions & 0 deletions packages/scripts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Enhancements

- Increase the timeout for e2e tests to 30 seconds ([#35983](https://github.com/WordPress/gutenberg/pull/35983)).

## 19.0.0 (2021-10-22)

### Breaking Changes
Expand Down
11 changes: 6 additions & 5 deletions packages/scripts/config/jest-e2e.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,22 @@ const path = require( 'path' );
const { hasBabelConfig } = require( '../utils' );

const jestE2EConfig = {
testRunner: 'jest-circus/runner',
globalSetup: path.join( __dirname, 'jest-environment-puppeteer', 'setup' ),
globalTeardown: path.join(
__dirname,
'jest-environment-puppeteer',
'teardown'
),
testEnvironment: path.join( __dirname, 'jest-environment-puppeteer' ),
setupFilesAfterEnv: [ 'expect-puppeteer' ],
testMatch: [ '**/specs/**/*.[jt]s', '**/?(*.)spec.[jt]s' ],
testPathIgnorePatterns: [ '/node_modules/' ],
reporters: [
'default',
path.join( __dirname, 'jest-github-actions-reporter.js' ),
],
setupFilesAfterEnv: [ 'expect-puppeteer' ],
testEnvironment: path.join( __dirname, 'jest-environment-puppeteer' ),
testMatch: [ '**/specs/**/*.[jt]s', '**/?(*.)spec.[jt]s' ],
testPathIgnorePatterns: [ '/node_modules/' ],
testRunner: 'jest-circus/runner',
testTimeout: 30000,
};

if ( ! hasBabelConfig() ) {
Expand Down

0 comments on commit 92bf5e6

Please sign in to comment.