Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
80 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,11 @@ | ||
import './commands'; | ||
|
||
beforeEach(() => { | ||
cy.server({ | ||
ignore: (xhr) => { | ||
// Ignore the webpack dev server calls that interfere in the tests | ||
// when testing with `yarn serve`. | ||
if (xhr.url.indexOf('sockjs-node/') > -1) { | ||
return true; | ||
} | ||
|
||
if (xhr.url.indexOf('api/health') > -1) { | ||
return true; | ||
} | ||
|
||
// Return the default cypress whitelist filer. | ||
return xhr.method === 'GET' && /\.(jsx?|html|css)(\?.*)?$/.test(xhr.url); | ||
}, | ||
cy.intercept('GET', '/sockjs-node/**', (req) => { | ||
req.destroy(); | ||
}); | ||
|
||
cy.intercept('GET', '/api/health', {}); | ||
cy.intercept('GET', '/api/health/**', (req) => { | ||
req.reply({}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters