mirror of
https://github.com/aleleba/create-react-ssr.git
synced 2025-01-08 04:56:57 -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,
|
||||
viewportHeight: 720,
|
||||
fileServerFolder: 'public',
|
||||
}
|
||||
});
|
||||
|
@ -38,10 +38,5 @@ declare global {
|
||||
|
||||
Cypress.Commands.add('mount', mount);
|
||||
|
||||
Cypress.on('uncaught:exception', (err, runnable) => {
|
||||
// returning false here prevents Cypress from failing the test
|
||||
return false;
|
||||
});
|
||||
|
||||
// Example use:
|
||||
// cy.mount(<MyComponent />)
|
||||
|
Loading…
Reference in New Issue
Block a user