I18n

Internalisation

Watch User Created Playlist (1)

This playlist is user created.

pro-course-rss-logo

PRO RSS Feed

Write tests for react-intl output using enzyme and Jest

P
react tutorial about Write tests for react-intl output using enzyme and Jest

Write tests for react-intl output using enzyme and Jest

7:30 react PRO

In this lesson, we’ll look at writing test assertions for react-intl output. We'll add the necessary dependencies, then we’ll use Jest snapshots to get assertions written quickly. Then, we’ll use enzyme API methods to traverse the DOM and write assertions about specific pieces of react-intl data.

Note: This lesson uses a modified version of an "intl-enzyme" helper utility from the react-intl documentation. You can find the modified file here.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?