Skip to content

Commit 7e0dceb

Browse files
committed
timeout again
1 parent 3263ed8 commit 7e0dceb

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

cypress/support/commands.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Cypress.Commands.add('modalIsVisibleAndFocused', () => {
2-
cy.get('.DocSearch-Modal').should('be.visible');
2+
cy.get('.DocSearch-Modal', { timeout: 10000 }).should('be.visible');
33
cy.get('.DocSearch-Input').should('be.focus');
44
});
55

packages/docsearch-react/babel.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = (api) => {
22
const isTest = api.env('test');
3-
const modules = isTest ? 'commonjs' : false;
3+
const modules = isTest ? 'commonjs' : 'auto';
44
const targets = {};
55

66
if (isTest) {

rollup.base.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const plugins = [
1616
browser: true,
1717
}),
1818
babel({
19+
babelHelpers: 'bundled',
1920
exclude: 'node_modules/**',
2021
extensions: ['.js', '.jsx', '.ts', '.tsx', '.json'],
2122
rootMode: 'upward',

0 commit comments

Comments
 (0)