weiran-zsd / dts-cli

Zero-config CLI for TypeScript package development
MIT License
440 stars 23 forks source link

Tests failing for a fresh new library #186

Closed leobastiani closed 1 year ago

leobastiani commented 1 year ago

Current Behavior

npx dts-cli create mylib
cd mylib
yarn test
❯ yarn test
yarn run v1.22.19
$ dts test --passWithNoTests
● Validation Error:

  Module ts-jest/dist in the transform option was not found.
         <rootDir> is: /Users/leonardo.bastiani/mylib

  Configuration Documentation:
  https://jestjs.io/docs/configuration

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Suggested solution(s)

Downgrading to typescript 4 solves this issue

yarn add -D typescript@^4