Simen Bekkhus

Results 1237 comments of Simen Bekkhus

Just need to instantiate it ```js import { Datastore } from '@google-cloud/datastore'; jest.mock('@google-cloud/datastore'); new Datastore(); ```

> ## Alternatives > Elsewhere it was proposed that: > > ``` > await dispatch({name: 'test_fn_start', test}); > const timeout = test.timeout || getState().testTimeout; > ``` > > ...could be...

Main issue with adding this sort of API is that it won't work when tests are running concurrently (`test.concurrent`). Of course, the same is the case for snapshots etc. -...

As mentioned in another issue (on mobile, so hard to dig up), `detectOpenHandles` was intentionally not added to config - the performance overhead is pretty bad (30+%). Once the performance...

In this specific case it's not needed as jest supports `{code: string}` since #2290 released more than 5 years ago and you can just use the "new" format. --- However,...

Doesn't even work :( Seems I gave up last time: #4630. And the test is purposefully ignored

@aaronabramov tried that in #3880, not sure why he aborted the attempt? Some side channel talk with @cpojer perhaps? I think @mjesun attempted it at some point as well. I'll...

`jest-circus` runs inside of the sandbox: https://github.com/facebook/jest/blob/5d2d46f1597e2880aeca4126947d7390cc6ff827/packages/jest-circus/src/legacy-code-todo-rewrite/jestAdapter.ts#L27

> Also, I could potentially be useful to print a warning if the callback does not trigger a call to the mock - in which case `withImplementation` was redundant. What...