RubyFlow The Ruby and Rails community linklog

Guide to setup testing React.js components with Jest in Rails+Webpacker+Webpack envir

Are you using React with Rails? Maybe integrated with Webpack thanks to Webpacker? Have you always wanted to test those components but configuring tests in JS seems hard? Here is a guide on how to start because there are dragons 🐉🐉 on the road and it took me some hours to figure it out from a few other tutorials.

https://blog.arkency.com/testing-react-dot-js-components-with-jest-in-rails-plus-webpacker-plus-webpack-environment/

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in