I wanted to test stimulus using jest, so I incorporated some of the information I found on here and in the stimulus repository into a NPM package. I hope it can help others who want to use jest to test stimulus controllers.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Testing Stimulus
|
9 | 10908 | September 20, 2024 | |
Unit Testing as part of Stimulusjs
|
0 | 1137 | April 27, 2018 | |
Add a doc about unit testing Stimulus controllers
|
2 | 2854 | September 20, 2024 | |
Controller package boilerplate
|
0 | 930 | March 11, 2019 | |
In Controller unit tests, should you unit test the HTML?
|
0 | 2595 | May 4, 2018 |