Note: this article will not make much sense unless you know the basics of GraphQL, an awesome technology we use at Slite. We recommend you get a brief understanding of it before going forward. Here are some resources.
If you’re using react, chances are that you are using the whole babel + jsx + webpack stack (and you’re goddamn’ right).
Your components files, the 1627219 of them, look like:
import React from 'react'
This article explains how to make your unit test setup and workflow as simple as possible (assuming you use babel).