testing-library/preact-hooks-testing-library

Preact and preact-testing-library should be defined as devDependencies

aduth opened this issue · 0 comments

aduth commented

preact and @testing-library/preact are defined as peer dependencies:

"peerDependencies": {
"@testing-library/preact": "^1.0.2",
"preact": "^10.4.1"
},

This makes sense for external consumers, but causes issues in local development, since TypeScript type checking will be unable to find types for the preact and @testing-library/preact packages, unless they are available in global caches.

To ensure that type definitions for preact and @testing-library/preact are available, they should be additionally be installed as devDependencies.