Skip to content

Repo to show circular error upon running jest unit tests with cleared cache.

Notifications You must be signed in to change notification settings

IsaacMcIntyre/vue3-ttypescript-circular-warning

Repository files navigation

ttypescript-error-proof

This is a repo to showcase circular warnings when ttypescript is set up as the compiler for ts-jest.

Customize configuration

See Vite Configuration Reference.

Project Setup

  • Node 16 should be installed on your machine
  • Dependencies should be installed
# if using nvm (node version manager)
nvm use 16
# install dependencies
npm install

Run tests to see warnings

To see warnings when running tests, to see the warnings jest cache should not be used. To run the tests with no cache and stacktrace, run the following:

npm test

Run tests without seeing warnings

To have the tests not show any warnings, simply comment out line 9 and uncomment line 10 in jest.config.js at the root of the file, and run the same test command again.

node --trace-warnings node_modules/.bin/jest --no-cache

About

Repo to show circular error upon running jest unit tests with cleared cache.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published