Getting error when running Jest tests with sfdx project at version 48
You need to update your sfdx-lwc-jest
node dependency to a more recent version:
- Edit
package.json
- Update the version of
sfdx-lwc-jest
underdevDependencies
. FYI: 0.7.0 is the latest for api v48.0 at time of writing. - Run
npm install
oryarn install
depending on your Node package manager.