Skip to content

Commit

Permalink
#267: test
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolkenfarmer committed Jul 10, 2024
1 parent afe20af commit 41ea3fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions frontend/cypress/e2e/pass-through.cy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
describe('pass-through tests', () => {
beforeEach(() => {
Cypress.on('uncaught:exception', (err) => {
if (err.message.includes('Failed to construct \'WebSocket\'')) {
console.log('Caught WebSocket construction error: ' + err.message)
return false
}
console.log('Caught uncaught exception: ' + err.message)
return false
})
cy.visit('http://localhost/')
})

Expand Down
3 changes: 3 additions & 0 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ export default defineConfig({
},
envDir: './',
envPrefix: 'VITE_',
define: {
'process.env': process.env
}
})

0 comments on commit 41ea3fc

Please sign in to comment.