sfdx-lwc-jest
sfdx-lwc-jest copied to clipboard
Run Jest against LWC components in SFDX workspace environment
I have tests that run individually but they are not shown in the coverage summary table when I run npm run test:unit:coverage. Typically I am working on a test and...
### Description This is just a documentation enhancement request. I have a project who's current sourceApiVersion is 46.0 I installed this latest package (0.6.2) and was met with the common...
### Description I'm testing using registerApexTestWireAdapter @wire adapter. It runs fine if the test is launched from the Powershell. Also, it runs as expected if I launch it using the...
### Description The example shows how to test events dispatching, but events are dispatched explicitly. https://github.com/trailheadapps/lwc-recipes/blob/master/force-app/main/default/lwc/miscNotification/__tests__/miscNotification.test.js One additional pattern is instead verifying that for example, upon invoking a wire service...
Winter '23 release introduced `stretch` attribute to `lightning-button` component: https://help.salesforce.com/s/articleView?id=release-notes.rn_lwc_components.htm&type=5&release=240
### Description Upgrade to 1.1.3 breaks tests of the components that refer to the crypto class and that import CSS module. Screens shots attached #### Steps to Reproduce 1. Checkout...
Reverts a potential breaking change in the upgrade from jest 27 to jest 29. Should resolve https://github.com/salesforce/sfdx-lwc-jest/issues/288. This change will be released as 1.1.4. The new breaking upgrade will be...
getRecords adaptor was missing in uiRecordApi stub fixes #282
Other routine dependency updates
### Description Error/Warning while running lwc-jest tests on a single newly created LWC component. ``` console.error [LWC error]: LWC WARNING: current engine is v5.0.2, but template was compiled with v5.1.0....