Skip to content

feat: Add new --skipApiVersionCheck flag #188

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 13, 2021

Conversation

pmdartus
Copy link
Member

This PR introduces a new advanced flag --skipApiVersionCheck. When this flag is passed, sfdx-lwc-jest will not check if the sfdx-project.json sourceApiVersion field is matching with matching the expected API version.

With this flag, ISV who want to avoid bumping their package API version at a different cadence than Salesforce release can keep their test runner version up-to-date.

@pmdartus pmdartus requested a review from trevor-bliss January 12, 2021 13:21
@pmdartus pmdartus force-pushed the pmdartus/skip-api-version-check branch from 3bb271f to fcbfdf9 Compare January 12, 2021 13:23
Copy link
Contributor

@ravijayaramappa ravijayaramappa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, will delegate the approval to Trevor as he knows the implication of sourceApiVersion best

Copy link
Contributor

@trevor-bliss trevor-bliss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code change itself looks good to me. Before we release this to npm, I would like to have more documentation on the implications of setting this flag though (running an out of date version of LWC framework, for example).

I can get something started there in the next couple days.

@pmdartus pmdartus merged commit 6f7052b into master Jan 13, 2021
@pmdartus pmdartus deleted the pmdartus/skip-api-version-check branch January 13, 2021 09:45
ravijayaramappa added a commit that referenced this pull request Jan 15, 2021
* feat: Add new --skipApiVersionCheck flag  (#188)

* Add README note about --skipApiVersionCheck flag (#190)

* Add README note about --skipApiVersionCheck flag

* fix typo

* fix: update snapshot to match old version of yargs

Co-authored-by: Pierre-Marie Dartus <[email protected]>
Co-authored-by: Trevor <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants