# babel-jest-import-glob

> Wrapper of [babel-jest](https://www.npmjs.com/package/babel-jest) that makes jest aware of wildcard glob imports using [babel-plugin-import-glob](https://github.com/novemberborn/babel-plugin-import-glob).

Latest version **1.0.0** (published 2017-05-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install babel-jest-import-glob
pnpm add babel-jest-import-glob
yarn add babel-jest-import-glob
bun add babel-jest-import-glob
```

## 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-05-18 |
| First published | 2017-05-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Luke Scott |
| Maintainers | lukescott |

## Links

- npm: https://www.npmjs.com/package/babel-jest-import-glob
- Repository: https://github.com/lukescott/babel-jest-import-glob
- Homepage: https://github.com/lukescott/babel-jest-import-glob#readme
- Issues: https://github.com/lukescott/babel-jest-import-glob/issues
- npm.io page: https://npm.io/package/babel-jest-import-glob

## Dependencies (2)

- [glob](https://npm.io/package/glob.md) ^7.1.1
- [babel-jest](https://npm.io/package/babel-jest.md) ^20.0.3

## Recent versions

- 1.0.0 (latest) — 2017-05-18

## README

# babel-jest-import-glob

Wrapper of [babel-jest](https://www.npmjs.com/package/babel-jest) that makes
jest aware of wildcard glob imports using
[babel-plugin-import-glob](https://github.com/novemberborn/babel-plugin-import-glob).

`babel-jest` assumes a file is idempotent. When using `babel-plugin-import-glob`
an added or deleted file can change the transform. But `babe-jest` has no
way to pick up on this since the original file has not changed.

This wrapper looks for wildcard glob imports and uses
[glob](https://github.com/isaacs/node-glob) to prepend a comment block above
the file content. This allows `babel-jest` to see that the file needs
to be transformed again.

## Installation

```
npm install --save-dev babel-jest-import-glob
```

## Usage

package.json
```json
{
	"jest": {
		"transform": {
			"^.+\\.jsx?$": "babel-jest-import-glob"
		}
	}
}
```

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