Skip to content

Commit

Permalink
timeout again
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp committed Oct 30, 2024
1 parent 3263ed8 commit 7e0dceb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cypress/support/commands.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Cypress.Commands.add('modalIsVisibleAndFocused', () => {
cy.get('.DocSearch-Modal').should('be.visible');
cy.get('.DocSearch-Modal', { timeout: 10000 }).should('be.visible');
cy.get('.DocSearch-Input').should('be.focus');
});

Expand Down
2 changes: 1 addition & 1 deletion packages/docsearch-react/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = (api) => {
const isTest = api.env('test');
const modules = isTest ? 'commonjs' : false;
const modules = isTest ? 'commonjs' : 'auto';
const targets = {};

if (isTest) {
Expand Down
1 change: 1 addition & 0 deletions rollup.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const plugins = [
browser: true,
}),
babel({
babelHelpers: 'bundled',
exclude: 'node_modules/**',
extensions: ['.js', '.jsx', '.ts', '.tsx', '.json'],
rootMode: 'upward',
Expand Down

0 comments on commit 7e0dceb

Please sign in to comment.