# yaml-jest

> A YAML transform for jest

Latest version **1.2.0** (published 2021-12-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install yaml-jest
pnpm add yaml-jest
yarn add yaml-jest
bun add yaml-jest
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2021-12-21 |
| First published | 2017-02-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 199.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 17 |
| Maintainers | danwang |

## Links

- npm: https://www.npmjs.com/package/yaml-jest
- Repository: https://github.com/danwang/yaml-jest
- Homepage: https://github.com/danwang/yaml-jest#readme
- Issues: https://github.com/danwang/yaml-jest/issues
- npm.io page: https://npm.io/package/yaml-jest

## Dependencies (1)

- [js-yaml](https://npm.io/package/js-yaml.md) ^4.1.0

## Recent versions

- 1.2.0 (latest) — 2021-12-21
- 1.1.0 — 2021-12-10
- 1.0.6 — 2021-11-19
- 1.0.5 — 2017-08-11
- 1.0.4 — 2017-02-02
- 1.0.3 — 2017-02-02
- 1.0.2 — 2017-02-02
- 1.0.1 — 2017-02-02
- 1.0.0 — 2017-02-02

## README

# yaml-jest
A YAML transform for [Jest](https://facebook.github.io/jest/)

# Install
```
yarn install --dev yaml-jest
```

# Usage
Add an entry to `moduleFileExtensions` and `transform` to your project's [Jest config](https://facebook.github.io/jest/docs/configuration.html):

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

---
_Source: https://npm.io/package/yaml-jest · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
