Skip to content

Declarative APIs and Testing with Enzyme

Photo of Christopher Downard
Hosted By
Christopher D.
Declarative APIs and Testing with Enzyme

Details

Come downtown for food, drink, talks, and socializing. We'll be talking about ReactJS and related technologies. There is a lightrail stop at the corner of where the meetup is.

Talks/topics to be covered:

React Declarative APIs by Willy Douglas

Fetching data from a server to display in a React app is something most people that use React want to do. It seems like something that should be fairly straightforward and simple to do, and yet there is a large amount of confusion around how to do it well. Even many of the common “idiomatic” ways of interfacing with APIs leave something to be desired. Facebook and Netflix created Relay and Falcor to provide a better interface for the client to define it’s data requirements and allow developers to describe component data needs with declarative, co-located queries. Both these tools, however, require a different API layer (GraphQL and JSON Graph respectively). This talk will discuss some ways to get the advantages of simple, declarative, co-located component queries with REST APIs, and how that compares to using something like GraphQL directly.

React Testing with Enzyme by Valerie Kraucunas

"Untested code is broken code." Enzyme, the testing utility for React, is flexible, intuitive, and compatible with most test runners. When matched with a test double library like Sinon.js, Enzyme becomes capable of unit testing both components and reducers. Together we'll cover the tradeoffs of the different rendering methods provided from Enzyme, best practices for writing test files, and upcoming features of Enzyme.

Photo of React Denver group
React Denver
See more events
React Denver
Photo of React Denver group
No ratings yet
Crownpeak
707 17th St, Suite 3800 · Denver, CO