stimulus_testing

Rails example using webpacker and stimulus (using jest / react testing library) for tests

Stars
4

Stimulus Testing

This repo is a PoC that implements:

  • A super simple stimulus controller that increases/decreases a counter
  • A test for the counter controller
  • A setupTests file to configure Jest and specially configure the MutationObserver shim
  • Configure Jest on the package.json to use setup file and configure folders correctly
  • Also has a different test file using testing-library with jest-dom assertions
Badges
Extracted from project README
Build Status