3.2.2 • Published 5 months ago

@bluecateng/jest-helpers v3.2.2

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

@bluecateng/jest-helpers GitHub license npm version

Helper scripts for Jest.

Installation

npm i -D @bluecateng/jest-helpers

Usage

In package.json add:

{
	"jest": {
		"moduleNameMapper": {
			"^react$": "@bluecateng/jest-helpers/mock-react",
			"^react-dom$": "@bluecateng/jest-helpers/mock-react",
			"^react/jsx-runtime$": "@bluecateng/jest-helpers/mock-react",
			"\\.(png|jpg|gif|svg)$": "@bluecateng/jest-helpers/file-mapper",
			"\\.(css|less)$": "@bluecateng/jest-helpers/style-mapper"
		},
		"setupFilesAfterEnv": ["@bluecateng/jest-helpers/setup-enzyme"],
		"testEnvironment": "node"
	}
}
3.2.2

5 months ago

3.2.1

6 months ago

3.2.0

8 months ago

3.1.0

2 years ago

3.0.0

2 years ago