stocky-dream-36427
05/14/2021, 4:11 PMbreezy-australia-64868
05/14/2021, 4:11 PMactions.js
file is importing my ./api.js
, is there a way I can mock that file?breezy-australia-64868
05/14/2021, 4:11 PMstocky-dream-36427
05/14/2021, 4:11 PMbreezy-australia-64868
05/14/2021, 4:12 PMcy.intercept
?stocky-dream-36427
05/14/2021, 4:12 PMbreezy-australia-64868
05/14/2021, 4:12 PMstocky-dream-36427
05/14/2021, 4:13 PMstocky-dream-36427
05/14/2021, 4:13 PMbreezy-australia-64868
05/14/2021, 4:13 PMstocky-dream-36427
05/14/2021, 4:13 PMstocky-dream-36427
05/14/2021, 4:14 PMbreezy-australia-64868
05/14/2021, 4:14 PMstocky-dream-36427
05/14/2021, 4:14 PMstocky-dream-36427
05/14/2021, 4:15 PMbreezy-australia-64868
05/14/2021, 4:15 PMbreezy-australia-64868
05/14/2021, 4:15 PMstocky-dream-36427
05/14/2021, 4:16 PMstocky-dream-36427
05/14/2021, 4:16 PMstocky-dream-36427
05/14/2021, 4:17 PMstocky-dream-36427
05/14/2021, 4:18 PMbreezy-australia-64868
05/14/2021, 4:18 PMuser
05/14/2021, 9:43 PMuser
05/14/2021, 10:04 PMbulky-sundown-74498
05/14/2021, 10:06 PMuser
05/14/2021, 10:15 PMuser
05/15/2021, 1:15 AM0 passing (324ms)
1 failing
1) An uncaught error was detected outside of a test:
ReferenceError: The following error originated from your test code, not from Cypress.
> process is not defined
When Cypress detects uncaught errors originating from your test code it will automatically fail the current test.
Cypress could not associate this error to any specific test.
We dynamically generated a new test to display this failure.
at Object../node_modules/variable-diff/node_modules/supports-color/index.js (https://localhost:6080/__cypress/tests?p=cypress/support/index.js:53491:12)
at __webpack_require__ (https://localhost:6080/__cypress/tests?p=cypress/support/index.js:53660:42)
at Object../node_modules/variable-diff/node_modules/chalk/index.js (https://localhost:6080/__cypress/tests?p=cypress/support/index.js:53351:21)
at __webpack_require__ (https://localhost:6080/__cypress/tests?p=cypress/support/index.js:53660:42)
at Object../node_modules/variable-diff/index.js (https://localhost:6080/__cypress/tests?p=cypress/support/index.js:53114:13)
at __webpack_require__ (https://localhost:6080/__cypress/tests?p=cypress/support/index.js:53660:42)
at Object../node_modules/snap-shot-compare/src/index.js (https://localhost:6080/__cypress/tests?p=cypress/support/index.js:42534:14)
at __webpack_require__ (https://localhost:6080/__cypress/tests?p=cypress/support/index.js:53660:42)
at Object../node_modules/@cypress/snapshot/src/index.js (https://localhost:6080/__cypress/tests?p=cypress/support/index.js:18:17)
at __webpack_require__ (https://localhost:6080/__cypress/tests?p=cypress/support/index.js:53660:42)
user
05/15/2021, 1:15 AMuser
05/15/2021, 1:20 AMcrooked-television-64942
05/17/2021, 7:23 AMsh
npx cypress run --env grepTags=smoke
it outputs cypress-grep: filtering using tag "smoke"
in the terminal, but all tests run.
Has anyone setup this lib and had success?