famous-restaurant-30435
07/13/2022, 9:50 PMnode mocks/index.jsable-monkey-72947
07/13/2022, 9:52 PMfamous-restaurant-30435
07/13/2022, 9:53 PMfamous-restaurant-30435
07/13/2022, 9:54 PMfamous-restaurant-30435
07/13/2022, 9:54 PMfamous-restaurant-30435
07/13/2022, 9:54 PMCypress.on("test:before:run:async", async () => {
await worker.start();
});able-monkey-72947
07/13/2022, 9:56 PMfamous-restaurant-30435
07/13/2022, 9:56 PMable-monkey-72947
07/13/2022, 9:56 PMnode that script.famous-restaurant-30435
07/13/2022, 9:57 PMable-monkey-72947
07/13/2022, 10:00 PMfamous-restaurant-30435
07/13/2022, 10:01 PMable-monkey-72947
07/13/2022, 10:02 PMcat-facts.com/api or whatever, what's the mechanism to make the app hit MSW during build time instead of getting actual cat facts?able-monkey-72947
07/13/2022, 10:02 PMfamous-restaurant-30435
07/13/2022, 10:05 PMable-monkey-72947
07/13/2022, 10:06 PMif (process.env.NODE_ENV === 'test') {
require('../../mocks')
}
high up in the nextjs app and it'll pick it up during the build process.able-monkey-72947
07/13/2022, 10:06 PMfamous-restaurant-30435
07/13/2022, 10:07 PMserver.listen() functionfamous-restaurant-30435
07/13/2022, 10:07 PMfamous-restaurant-30435
07/13/2022, 10:09 PMfamous-restaurant-30435
07/13/2022, 10:09 PMfamous-restaurant-30435
07/13/2022, 10:09 PMable-monkey-72947
07/13/2022, 10:10 PMable-monkey-72947
07/13/2022, 10:38 PMable-monkey-72947
07/13/2022, 10:38 PMgreen-book-63455
07/14/2022, 7:27 AMhallowed-noon-70189
07/14/2022, 10:26 AMgray-kilobyte-89541
07/14/2022, 11:52 AMable-monkey-72947
07/14/2022, 2:59 PMexperimentalInteractiveRunEvents? I have tried both
module.exports = defineConfig({
e2e: {
...
},
experiments: { experimentalInteractiveRunEvents: true }
})
and
module.exports = defineConfig({
e2e: {
...,
experiments: { experimentalInteractiveRunEvents: true }
},
})
in my cypress.config.js file and I'm not see any logging output from either event.able-monkey-72947
07/14/2022, 3:01 PMbefore:spec and after:spec event, I'm just trying to console.log(spec).