Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

yaml-jest

danwang73.4kISC1.2.0

A YAML transform for jest

readme

yaml-jest

A YAML transform for Jest

Install

yarn install --dev yaml-jest

Usage

Add an entry to moduleFileExtensions and transform to your project's Jest config:

{
  "moduleFileExtensions": ["js", "yaml"],
  "transform": {
    "\\.yaml$": "yaml-jest",
    "\\.js?$": "babel-jest"
  },
}