Simen Bekkhus
Simen Bekkhus
Yeah, deep imports are not supported: https://www.runpkg.com/?@opensearch-project/[email protected]/package.json#11 Note that `require("@opensearch-project/opensearch/lib/errors")` prints a deprecation warning in Node 16 and fails in Node 18 - see https://github.com/facebook/jest/issues/13065#issuecomment-1201416511
The error Jest prints here is awful, tho
@ChocolateLoverRaj I cannot reproduce - the snapshot _is_ written to `lib/`.
Might be. I'm on mac - might be your logic doesn't work on windows?
It's in `lib/__tests__/__snapshots__/`
Note that you ignore the snapshot folder: https://github.com/ChocolateLoverRaj/jest-bug-3/blob/077af67b259dd784e7334c5fc93dea105a84feb6/.gitignore#L2
https://github.com/ChocolateLoverRaj/jest-bug-3/pull/1/files#r955804620
Yeah, path replacement with forward slashes probably doesn't work. Too bad the check we have doesn't pick it up, but all it does is verify it works the same both...
We should never have `TypeError`s internally, no matter what your config is. Can anyone provide a full, minimal reproduction we can clone and run locally to see the error?
@isumeetk thanks, but could you do those steps in a repo and publish that? I tried to follow your steps but step 3 is unclear (`paths` is already in the...