Skip to content

Commit aa1358b

Browse files
committed
All 4 tests pass now. The fix was updating the jest.mock path from the source .ts file to the mapped module name
'solid-ui-core/utils/keyHelpers/otherHelpers', which moduleNameMapper resolves to the compiled lib/ file that accessData.js actually imports from.
1 parent ddaf753 commit aa1358b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/unit/utils/keyHelpers/accessData.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ store.fetcher.webOperation = jest.fn()
1212
store.each = jest.fn()
1313
store.any = jest.fn()
1414

15-
jest.mock('../../../../node_modules/solid-ui-core/src/utils/keyHelpers/otherHelpers.ts', () => {
15+
jest.mock('solid-ui-core/utils/keyHelpers/otherHelpers', () => {
1616
return {
1717
getRootIfPreferencesExist: jest.fn().mockImplementationOnce(() => {
1818
throw new Error()

0 commit comments

Comments
 (0)