Created
August 15, 2021 04:52
-
-
Save msutkowski/094687d5c7753e137c82e2157de837ce to your computer and use it in GitHub Desktop.
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
async function prepare() { | |
// @ts-ignore | |
if (typeof Cypress !== 'undefined') { | |
const { worker } = require('./mocks/browser'); | |
return worker.start({ onUnhandledRequest: 'warn' }); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🎉