You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not an issue per se, but more of a heads-up/unofficial docs for people who encounter the same problem. However this can spark some discussions on how to manage versions of the external (app) and internal (toolbox) dependencies.
Env:
kcd-scripts ^0.42.1:
node: 8.11.3
yarn 1.9.4
What you did:
Use default pre-commit on CRA based repo.
What happened:
TypeError: environment.teardown is not a function
Problem description:
The issue is realated to the fact that CRA does not allow conflicting Jest versions.
Note:
This is not an issue per se, but more of a heads-up/unofficial docs for people who encounter the same problem. However this can spark some discussions on how to manage versions of the external (app) and internal (toolbox) dependencies.
Env:
kcd-scripts
^0.42.1:node
: 8.11.3yarn
1.9.4What you did:
Use default pre-commit on CRA based repo.
What happened:
TypeError: environment.teardown is not a function
Problem description:
The issue is realated to the fact that CRA does not allow conflicting Jest versions.
Related issues for some background: jest#6393, jest#5119
Suggested solution:
Add
lint-staged
entry in your package.json, ultimately overwriting actions on pre-commit hook, something along these linesThe text was updated successfully, but these errors were encountered: