Releases: salesforce/sfdx-lwc-jest
Releases · salesforce/sfdx-lwc-jest
v0.12.6
0.12.6 (2021-06-30)
Bug Fixes
- revert(apex-methods-automock): reverts functionality providing apex automocks #235.
Reverts the functionality to auto mock apex and apexContinuation methods (#224). Note: test authors will need to keep implementing their own apex (+apexContinuation) methods mocks.
v0.13.0
0.13.0 (2021-06-18)
Bug Fixes
- account for difference in behavior between npm v6 and v7 (#223) (#225) (af864c1)
v0.12.5
0.12.5 (2021-06-18)
Bug Fixes
- account for difference in behavior between npm v6 and v7 (#223) (6a0dd3e)
- automock apex methods with valid wire adapters (#224) (0cc034d)
- expose new methods from @salesforce/wire-service-jest-util (#227) (2b21733), closes #204 #207 #206
v0.12.3
Bug fixes
- #210: Ignore Apex stubs from LWC compiler transformation
v0.12.2
Bug fixes
- #208: Automatically mock Apex method used as valid wire adapters
v0.12.1
Documentation
- #204: Documentation updates related to the wire reform.
Improvements
- #206: Update lightning component stubs in preparation for Summer 21 Salesforce release
- #207: Adds the follow utils to create test wire adapters:
createApexTestWireAdapter
, createLdsTestWireAdapter
, createTestWireAdapter
v0.12.0
Prepares @salesforce/sfdx-lwc-jest for the Summer21 Salesforce release.
Improvements
- #196: Simplify the test runner logic. For both standard and debug runs, Jest will be invoked by spawning a new process. Uses an allow list approach for pass through options instead of a disallow list approach.
- #201: Update dependencies to match Spring21 Salesforce release.
- #205: Update dependencies to match Summer21 Salesforce release.
Bug fixes
- #195: Retrieve the path to Jest binary using require.resolve instead of hardcoded path.
v0.11.0
Breaking
- #187: Drops Jest 25. With this PR, @salesforce/sfdc-lwc-jest executes tests using Jest v26.
Improvements
- #180: Add missing stub for getObjectInfos wire adapter.
- #183: Update lightning stubs.
- #188, #190: Adds a new skipApiVersionCheck option to disable the "sourceApiVersion" field check before running tests.
Internal
- #193: Enforce formatting check in CI flow.