assuncaocharles / assuncaocharles/create-react-app-parcel-typescript

tests fail to run

Open
#3 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
59
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Thanks for making this project. When I run `yarn test` or `npm run test`, I get an error:

Validation Error:

Module /Users/joshua/Projects/create-react-app-parcel/node_modules/create-react-app-parcel-typescript/config/polyfills.js in the setupFiles option was not found.

Configuration Documentation:
https://facebook.github.io/jest/docs/configuration.html

If I install the npm module raf-polyfill, and then manually copy the contents of node_modules/raf-polyfill/raf.js to node_modules/create-react-app-parcel-typescript/config/polyfills.js, I can run the tests properly.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure with `yarn test` or `npm run test`, then inspect the Jest `setupFiles` reference to `config/polyfills.js` and the reported `raf-polyfill` workaround. Done means the project tests run successfully without manually copying files into `node_modules`.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.