Undefined createTransformer function in jest-preprocess.js when following Gatsby unit testing instructions #31618
Labels
good first issue
Issue that doesn't require previous experience with Gatsby
help wanted
Issue with a clear description that the community can help with.
type: documentation
An issue or pull request for improving or updating Gatsby's documentation
Description
When following the Gatsby unit testing instructions, all tests fail to run because the createTransformer function in the object returned by require("babel-jest") is undefined.
Steps to reproduce
I used the following test case in my reproduction:
Link to a reproduction: https://github.com/amcgregor101/gatsby-testing-bug
Expected result
The test passes.
Actual result
I get the following error:
Environment
The text was updated successfully, but these errors were encountered: