# jest-snapshot-serializer-class-name-to-string

> Jest snapshot serializer that call `.toString` on className react props.

Latest version **1.0.0** (published 2017-08-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install jest-snapshot-serializer-class-name-to-string
pnpm add jest-snapshot-serializer-class-name-to-string
yarn add jest-snapshot-serializer-class-name-to-string
bun add jest-snapshot-serializer-class-name-to-string
```

## 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.0.0 |
| Published | 2017-08-15 |
| First published | 2017-08-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Aleksandr Kitov |
| Maintainers | heymdall |

## Links

- npm: https://www.npmjs.com/package/jest-snapshot-serializer-class-name-to-string
- Repository: https://github.com/Heymdall/jest-snapshot-serializer-class-name-to-string
- Homepage: https://github.com/Heymdall/jest-snapshot-serializer-class-name-to-string#readme
- Issues: https://github.com/Heymdall/jest-snapshot-serializer-class-name-to-string/issues
- npm.io page: https://npm.io/package/jest-snapshot-serializer-class-name-to-string

## Recent versions

- 1.0.0 (latest) — 2017-08-15

## README

# jest-snapshot-serializer-class-name-to-string
Jest snapshot serializer that call `.toString` on className react props.


## Background
React by default call `.toString` method on not string values given to className props, default jest serializer - don't.

You can use this package to add this functionality to jest.

## Installation

* Add the package to your project using npm or yarn
```sh
$ npm install --save-dev jest-snapshot-serializer-class-name-to-string
# OR
$ yarn add --dev jest-snapshot-serializer-class-name-to-string
```

* Edit the `snapshotSerializers` section of your jest configuration:
```json
// package.json
{
  ...
  "jest": {
    "snapshotSerializers": ["jest-snapshot-serializer-class-name-to-string"]
  }
}
```

* Run `jest -u` to update your snapshots

## Contributing

Pull requests and issues welcome.

---
_Source: https://npm.io/package/jest-snapshot-serializer-class-name-to-string · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
