salesforce / sfdx-lwc-jest

Run Jest against LWC components in SFDX workspace environment
MIT License
164 stars 81 forks source link

Latest npm version re-introduces wrong API version check #276

Closed lchnnl closed 2 years ago

lchnnl commented 2 years ago

Description The latest version from npm (1.1.0 as of writing this) still uses API version 53.0 as baseline.

Invalid sourceApiVersion found in sfdx-project.json. Expected 53.0, found 54.0

Steps to Reproduce Change a SFDX projects API version to 54.0 (Spring '22) Install @salesforce/sfdx-lwc-jest@latest from npm. Run Jest tests Expected Results Tests run successful.

Actual Results The Jest invocation exists with Invalid sourceApiVersion found in sfdx-project.json. Expected 53.0, found 54.0.

Version @salesforce/sfdx-lwc-jest: 1.1.0

yippie commented 2 years ago

And now API version 55 is out. If they aren't going to make a new sfdx-lwc-jest every new salesforce release, then the version check needs to go away as it is clear sfdx-lwc-jest is not actually intended or maintained in anything resembling a version locked state.

ravijayaramappa commented 2 years ago

Should be fixed by updating to @salesforce/sfdx-lwc-jest@latest v1.1.1