Commit 4eae5a4
Make Tintype VS Code mocks safe for Jest hoisting
Summary:
Wrap the shared VS Code mock functions in lazy forwarding callbacks so Jest 29's hoisted `jest.mock()` factory does not evaluate top-level `const` mocks before initialization. Type the wrapper returns as `unknown` to satisfy strict xplat linting without changing runtime behavior.
___
Differential Revision: D116877448
fbshipit-source-id: 08c2fad9a34771175f4e942f74c49fa3d884df141 parent 6cc62e1 commit 4eae5a4
1 file changed
Lines changed: 6 additions & 5 deletions
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | | - | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
0 commit comments