Skip to main content

All Questions

0 votes
1 answer
79 views

Pact testing issue in Windows machine

While runing the pact testing in my Nextjs spa app, am facing the pact testing issue in windows machine error : [email protected]: Pact Binary Error: ..\node_modules@pact-foundation\pact\node_modules@...
Prem Kumar's user avatar
1 vote
1 answer
354 views

Nest.js e2e test dependency injection fails when importing services from shared libs

I have a nest.js monorepo and my e2e tests are failing using Test.createTestingModule() when i try to inject services from a shared libs folder. The same tests work if I import the exact same module ...
Laurence Fass's user avatar
2 votes
0 answers
416 views

How can I make detox run certain tests before others, or control the test order?

I have two test files, and one of them relies on the activity of the other (i.e. A.e2e.ts needs to run before B.e2e.ts). I considered that there might be two possible solutions to this: 1. Run the ...
crevulus's user avatar
  • 2,228
-1 votes
1 answer
2k views

Jest run async endpoints beforeall, afterall tests

[Junior dev!!] ->Node v18.08 ->jest 29.0.1 ->MySQL Hi i m running several jest test in diferent folders of each endpoint on my API. I have several files where i m creating an account => ...
Momo's user avatar
  • 59
0 votes
1 answer
1k views

How to target an element inside shadowRoot (user-agent) in Puppeteer

could you please help me with targeting the concrete element in e2e test? I´m using Jest and Puppeteer and I have this DOM structure (see in attachment below): And I need to target the red underlined ...
Michael Rýdl's user avatar
4 votes
1 answer
1k views

How to split jest e2e tests into multiple files without losing context?

So I've written plenty of e2e tests for my backend and this is becoming overwhelming as all of test methods are in one file. Reason I have all of them in one file is that when my app is created, ...
ablaszkiewicz1's user avatar
0 votes
1 answer
124 views

Integrate Puppeteer with Github CI

I'm starting to learn about e2e testing and I've decided on using Puppeteer for its documentation and support. However, I'm having some trouble figuring out how to integrate with Github CI on specific ...
Steve Li's user avatar
4 votes
1 answer
788 views

Mocking node module in Detox test

Is it possible to mock a node_module using guide provided here: https://github.com/wix/Detox/blob/master/docs/Guide.Mocking.md I was able to mock a regular file, but is it also possible for node ...
milo's user avatar
  • 477
0 votes
1 answer
2k views

Multiple environment testing with jest

I have some environment variables in my React app placed in .env.development file, which change application logic and view, for example: REACT_APP_USER_SIGN_UP_ENABLED=true. Can I configure Jest ...
Alex's user avatar
  • 3
1 vote
0 answers
967 views

Jest Setup and CleanUp

Is it possible to do some tasks only once before all test suites and do the clean up once after all the test suites have completed? The scenario is I want to create a user before any of the test ...
Sagar Acharya's user avatar