# babel-plugin-testdev

> The babel plugin for hiding your test code

Latest version **0.9.1** (published 2022-11-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-testdev
pnpm add babel-plugin-testdev
yarn add babel-plugin-testdev
bun add babel-plugin-testdev
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.9.1 |
| Published | 2022-11-20 |
| First published | 2022-11-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 80.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | isolcat |
| Maintainers | isolcat |
| Keywords | babel, babel-plugin, test |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-testdev
- npm.io page: https://npm.io/package/babel-plugin-testdev

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 0.9.1 (latest) — 2022-11-20

## README

# 🐱babel-plugin-testdev

The babel plugin for hiding your test code

## Motivation

There are already many unit testing frameworks on the market, such as: `vitest`, `jest`, but if you do not want to or do not have the energy to learn unit testing.

You may wish to use the plug-in, you do not need any learning costs to solve some simple tests😽

## Install

```shell
pnpm add babel-plugin-testdev
```

## Configure

You just need to do this：

```js
// babel.config.js
module.exports = {
  plugins: ["testdev"],
};
```

At the time of testing：

```js
if(TEST){
    //Fill in the code you want to test here, he will be hidden in production
}
```

You can also do your own testing in the `test` file

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