Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Usage from CLI

Alec Larson edited this page Apr 17, 2019 · 2 revisions
  1. Ensure spec.ts and typescript exist in devDependencies

  2. Write tests in their own .ts modules (import from spec.ts)

  3. Create a tsconfig.json that includes your test modules

  4. Add this script to your package.json

"test:ts": "tsc -p ./path/to/tsconfig.json --noEmit"
  1. Run yarn test:ts or npm run test:ts in your CI
Clone this wiki locally