@bluecateng/jest-helpers

3.2.2 • Public • Published

@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"
	}
}

Readme

Keywords

none

Package Sidebar

Install

npm i @bluecateng/jest-helpers

Weekly Downloads

160

Version

3.2.2

License

ISC

Unpacked Size

7.08 kB

Total Files

7

Last publish

Collaborators

  • jcestibariz
  • chinanwu