mirror of
https://github.com/aleleba/create-react-ssr.git
synced 2025-01-09 13:36:54 -06:00
PR-579798: trying to fix Cypress component testing.
This commit is contained in:
parent
1ab87ac994
commit
4335ca0ee4
@ -20,6 +20,5 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
viewportWidth: 1280,
|
viewportWidth: 1280,
|
||||||
viewportHeight: 720,
|
viewportHeight: 720,
|
||||||
fileServerFolder: 'public',
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -38,10 +38,5 @@ declare global {
|
|||||||
|
|
||||||
Cypress.Commands.add('mount', mount);
|
Cypress.Commands.add('mount', mount);
|
||||||
|
|
||||||
Cypress.on('uncaught:exception', (err, runnable) => {
|
|
||||||
// returning false here prevents Cypress from failing the test
|
|
||||||
return false;
|
|
||||||
});
|
|
||||||
|
|
||||||
// Example use:
|
// Example use:
|
||||||
// cy.mount(<MyComponent />)
|
// cy.mount(<MyComponent />)
|
||||||
|
Loading…
Reference in New Issue
Block a user