fernandes / stimulus_testing

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Ruby 67.4%Language:JavaScript 19.2%Language:HTML 12.0%Language:CSS 1.4%