Skip to content

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

Notifications You must be signed in to change notification settings

fernandes/stimulus_testing

Repository files navigation

Stimulus Testing

Build Status

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published