Quantcast
Channel: 'ReferenceError: jest is not defined' when running unit test - Stack Overflow
Viewing all articles
Browse latest Browse all 5

Answer by aaronmgdr for 'ReferenceError: jest is not defined' when running unit test

$
0
0

just figured this out

inside of setup.global.js anything that uses the jest global MUST beinside ofthe globalSetup function

import matchers from "some-jest-matcher" matchers() // jest not found errorsexport default async function globalSetup() { matchers() // also jest not found errors}

Viewing all articles
Browse latest Browse all 5

Latest Images

Trending Articles



Latest Images