Salesforce Decode
Salesforcedecode
LWC questionsQuestion 102 of 168
LWCIntermediateTroubleshootingjestsfdx-lwc-jestlabels

Troubleshoot LWC Jest tests failing on @salesforce/label imports

Scenario

CI pipeline fails on LWC unit tests with "Cannot find module @salesforce/label/c.My_Label" while local IDE tests pass intermittently.

Answer it out loud first

Serious prep means attempting before reading. Take two minutes to structure your answer, then compare.