You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// simplified test caseit('navigates to next event ...',()=>{
...
});
// JS for component under testimport{LightningElement}from'lwc';import{FlowNavigationNextEvent}from"lightning/flowSupport";exportdefaultclassFooextendsLightningElement{goToNextStep(){this.dispatchEvent(newFlowNavigationNextEvent());}}
Expected Results
Being able to test components that use lightning/flowSupport and potentially validate that event was dispatched.
Actual Results
Cannot find module 'lightning/flowSupport' from 'force-app'
Version
@salesforce/sfdx-lwc-jest: 1.0.1
Node: 14.17.5
Possible Solution
I currently added the following stub but is incomplete and requires duplication for the projects - I can happily submit a pull request for review (this was my starting point):
@jefersonchaves Would you mind sharing your completed stub? I assume you completed your stub since then, but I can't seem to find your PR. It would really help me :) thanks. If you can't, the above is still a good starting point.
PS. its kind of crazy that no one has responded to such a needed issue
Hello @djsing - To be honest I got involved into other projects and I feel I have never submitted a PR. The starting point still what I described here. I hope it helps you.
Description
Steps to Reproduce
Expected Results
Being able to test components that use
lightning/flowSupport
and potentially validate that event was dispatched.Actual Results
Cannot find module 'lightning/flowSupport' from 'force-app'
Version
Possible Solution
I currently added the following stub but is incomplete and requires duplication for the projects - I can happily submit a pull request for review (this was my starting point):
The text was updated successfully, but these errors were encountered: