Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

First successful use of registerLdsTestWireAdapter #62

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

rpanosSFDC
Copy link
Contributor

This is what we will need to do to the Record*Form tests in this repo to get rid of the evil library:

lwc-wire-service-sfdc-mocks

Pls note this includes a redesign of our resolver bc we need to move away from using stubs in this case.

npm run test:unit productCard

Gives:
  ● Test suite failed to run

    TypeError: Invalid adapterId, it must be extensible.

      at node_modules/@lwc/jest-preset/src/setup.js:139:23
          at Array.forEach (<anonymous>)
      at overriddenRegisterDecorators (node_modules/@lwc/jest-preset/src/setup.js:126:23)
      at Object.<anonymous> (force-app/main/default/lwc/productCard/productCard.js:36:29)
      at Object.<anonymous> (force-app/main/default/lwc/productCard/__test__/productCard.spec.js:5:1)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant