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
With jest-mock-extended both version 1.0.15 and 2.0.0, DeepMockProxy causes an error Module '"jest-mock-extended/lib/Mock"' has no exported member 'DeepMockProxy'
If I change setup to import { mockDeep, mockReset, DeepMockProxy } from 'jest-mock-extended'; to correlate with marchaos/jest-mock-extended#72 I still get no export member error.
We have a community PR #2319 that suggests changing the import path, but i need to clarify their version. Testing on 2.0.2-beta2 the solution in the docs works.
hey @molebox I'm on 2.0.2-beta2 and get error Module '"jest-mock-extended"' has no exported member 'DeepMockProxy'
I noticed i can't even do the following:
somefile.ts
exportdefault{foo: "foo",bar: "bar"}
anotherfile.ts
import{foo,bar}from'./somefile';
I get error that somefile does not have export member foo. Which is making me wonder if my prisma project was created differently. Maybe a different tsconfig.json? I don't know what to look for because i'm new to ts.
I still need to investigate my ts issues but import { DeepMockProxy } from 'jest-mock-extended/lib/cjs/Mock'; does work with "jest-mock-extended": "^2.0.2-beta2", thank you.
Hello
How did you make the test example work in here?
With
jest-mock-extended
both version 1.0.15 and 2.0.0,DeepMockProxy
causes an errorModule '"jest-mock-extended/lib/Mock"' has no exported member 'DeepMockProxy'
If I change setup to
import { mockDeep, mockReset, DeepMockProxy } from 'jest-mock-extended';
to correlate with marchaos/jest-mock-extended#72 I still get no export member error.Is this a typescript issue?
Here is my tsconfig.json
The text was updated successfully, but these errors were encountered: