You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know this probably is not the right place for such help request, but I looked for help in so many places and only found very old documentation on how to integrate ts-jest and Detox. If anyone has an updated working example it would be much appreciated, but if not, can you guys at least help me with what I have so far?
const{
DetoxCircusEnvironment,
SpecReporter,
WorkerAssignReporter,}=require('detox/runners/jest-circus')classCustomDetoxEnvironmentextendsDetoxCircusEnvironment{constructor(config,context){super(config,context)// Can be safely removed, if you are content with the default value (=300000ms)this.initTimeout=300000// This takes care of generating status logs on a per-spec basis. By default, Jest only reports at file-level.// This is strictly optional.this.registerListeners({
SpecReporter,
WorkerAssignReporter,})}}module.exports=CustomDetoxEnvironment
I already tried adding @types/jasmine, as suggested in an old discussing in another repo, but no luck. I'm running out of ideas now. Can someone please help me?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I know this probably is not the right place for such help request, but I looked for help in so many places and only found very old documentation on how to integrate ts-jest and Detox. If anyone has an updated working example it would be much appreciated, but if not, can you guys at least help me with what I have so far?
Here's what I have in my e2e folder:
e2e/config.json
e2e/enviroment.js
e2e/init.ts
Dev dependencies on package.json
.detoxrc.json
The error that I get is:
Cannot find module 'jasmine' from 'init.ts'
I already tried adding @types/jasmine, as suggested in an old discussing in another repo, but no luck. I'm running out of ideas now. Can someone please help me?
Beta Was this translation helpful? Give feedback.
All reactions