A YAML transform for Jest
yarn install --dev yaml-jest
Add an entry to moduleFileExtensions
and transform
to your project's Jest config:
{
"moduleFileExtensions": ["js", "yaml"],
"transform": {
"\\.yaml$": "yaml-jest",
"\\.js?$": "babel-jest"
},
}