feat(config): allow @lwc/state and ignoreTransform of it#486
Merged
jmsjtu merged 2 commits intosalesforce:masterfrom Jan 15, 2026
Merged
feat(config): allow @lwc/state and ignoreTransform of it#486jmsjtu merged 2 commits intosalesforce:masterfrom
jmsjtu merged 2 commits intosalesforce:masterfrom
Conversation
jhefferman-sfdc
approved these changes
Jan 13, 2026
jmsjtu
reviewed
Jan 14, 2026
| testPathIgnorePatterns: ['<rootDir>/node_modules/', '<rootDir>/test/specs/'], | ||
| transformIgnorePatterns: [ | ||
| '/node_modules/(?!(.*@salesforce/sfdx-lwc-jest/src/lightning-stubs)/)', | ||
| '/node_modules/(?!(@lwc/state)|(.*@salesforce/sfdx-lwc-jest/src/lightning-stubs)/)', |
Member
There was a problem hiding this comment.
@jodarove will @lwc/state ever be nested inside another NPM package?
Looks like with .*@salesforce/sfdx-lwc-jest/... it can be nested in a module like:
node_modules/some-nested-path/@salesforce/sfdx-lwc-jest/src/lightning-stubs/...
Should we be looking w/ the same pattern for @lwc/state?
Contributor
Author
There was a problem hiding this comment.
nice catch! i don't know if it can ever be nested, but it is better to be safe than sorry!
Contributor
Author
channiganfsu
approved these changes
Jan 14, 2026
jmsjtu
approved these changes
Jan 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Detail
As a component developer i would like to test a state managers and/or components using it.
This PR adds
@lwc/statetosfdx-lwc-jestand adds it to thetransformIgnorePatternssection of the configuration, as@lwc/stateis an esmodule