JOHN PFINGST

Updated 45 days ago
  • ID: 32933864/89
The Enzyme package, from Airbnb, appears to solve some of the problems I ran into when using plain Jest. "Enzyme is a JavaScript Testing utility for React that makes it easier to assert, manipulate, and traverse your React Components' output". For example, with Enzyme, I was able to use a .click method much like RSpec... In my portfolio-analyzer repository, containing a Rails API back end and a JavaScript front end, all of the Rails testing is done with RSpec. With a small amount of setup, RSpec testing is as simple as navigating to a page and ‘clicking' an element. It is incredibly readable. visit ‘http://localhost:3000' page.first(‘#portfolioEdit').click fill_in "Name", :with =>... The application is a Rails API backend with a Javascript frontend, in a single GitHub repository. All the Rails testing for models and controllers is done with RSpec. For expediency, I thought I'd try RSpec to perform feature tests on the javascript frontend rather than add a second testing framework...
  • 0
  • 0
Interest Score
1
HIT Score
0.00
Domain
johnpfingst.com

Actual
www.johnpfingst.com

IP
63.250.43.138, 63.250.43.139

Status
OK

Category
Other
0 comments Add a comment