lorenzofox3 / zora

Lightest, yet Fastest Javascript test runner for nodejs and browsers
MIT License
539 stars 93 forks source link

Example of cleaner ts-node setup with pta + TypeScript #157

Closed 3cp closed 2 years ago

3cp commented 2 years ago

The ts-node setup for TypeScript seems working well, sourcemap also works when pointing code error.

"test": "NODE_OPTIONS='--loader ts-node/esm' c8 pta 'test/**/*.spec.ts'",

Note c8 is optional, but it works too.

https://github.com/3cp/scoped-eval/blob/adb2cd9ba4ec577865f08552e6fa33a9eddb9c72/package.json#L13