TypeScript test
Betterer ships several built-in tests to get you started. Check out the implementations for inspiration for your own tests!
@betterer/typescript
Use this test to incrementally introduce TypeScript configuration to your codebase.
import { typescript } from '@betterer/typescript';
export default {
'stricter compilation': () =>
typescript('./tsconfig.json', {
strict: true,
noEmit: true
}).include('./src/**/*.ts')
};
@betterer/typescript
is a BettererFileTest, so you can use include
, exclude
, only
, and skip
.