Skip to content

scottwillmoore/vitest-with-typescript-references

Repository files navigation

Vitest with TypeScript references

This repository attempts to create a reproduction for the Vitest issue, such that vitest typecheck does not work with TypeScript references.

The tsconfig.json references both tsconfig.node.json and tsconfig.web.json which provide different compilerOptions for each environment. However, due to a known issue with the TypeScript compiler, tsc --noEmit is not able to check the types...

  1. Clone the repository
  2. Install the Node dependencies
  3. Inspect the compilerOptions of tsconfig.node.json
  4. Observe how ./vite.config.ts has relevant types
  5. Inspect the compilerOptions of tsconfig.web.json
  6. Observe how ./sources/* has relevant types
  7. Execute npm run test:types
  8. Observe how the error in ./sources/greet.test-d.ts is not discovered

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published