jest-plugin-its
Adds subject
and its
implementations from RSpec to Jest.
Getting Started
Install jest-plugin-its
using yarn
:
yarn add --dev jest-plugin-its
Motivation
Usage
If you want, you can import its
and subject
for each test file via:
;
If you want to install its
and subject
as globals, you can modify the jest
section of your package.json
to include:
"jest": ,
Example
Here's an example that tests the implementation of its
:
; ;