augmenting mocha module #23067
Unanswered
mb73
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using Cypress 10.3.1 and want to add new functions to mocha
Context
.In
e2e.ts
I doimport './context';
. And incontext.ts
I have:Visual Studio lets me call the new function on
Context
(code completion). But when trying to run any test I get:Is this possibly a bundler issue? If I remove the browserify setup (which I need for something else), I get a different error instead:
Cypress 10.3.1 package.json refers to Mocha 3.5.3.
Do I have to install it manually to my own project? If I do so (
yarn add -D [email protected]
), again I get a different error instead:Any idea how to do this right?
Beta Was this translation helpful? Give feedback.
All reactions