@@ -234,7 +234,7 @@ async function main(): Promise<void> {
234
234
main : 'dist/index.js' ,
235
235
types : 'dist/index.d.ts' ,
236
236
scripts : {
237
- ...( hasTests ? { test : 'mocha --require ts-node/register "src/**/*.test.ts" ' } : { } ) ,
237
+ ...( hasTests ? { test : 'nyc mocha ' } : { } ) ,
238
238
'semantic-release' : 'semantic-release' ,
239
239
prettier : "prettier '**/{*.{js?(on),ts?(x),scss},.*.js?(on)}' --write --list-different" ,
240
240
'prettier-check' : 'npm run prettier -- --write=false' ,
@@ -257,6 +257,10 @@ async function main(): Promise<void> {
257
257
exclude : [ '**/*.test.ts?(x)' ] ,
258
258
extension : [ '.tsx' , '.ts' ] ,
259
259
} ,
260
+ mocha : {
261
+ require : 'ts-node/register' ,
262
+ spec : 'src/**/*.test.ts' ,
263
+ } ,
260
264
}
261
265
: { } ) ,
262
266
}
@@ -288,7 +292,7 @@ async function main(): Promise<void> {
288
292
'@sourcegraph/tslint-config' ,
289
293
'@sourcegraph/tsconfig' ,
290
294
'@sourcegraph/prettierrc' ,
291
- ...( hasTests ? [ 'mocha' , 'nyc' ] : [ ] ) ,
295
+ ...( hasTests ? [ 'mocha' , 'nyc' , 'ts-node' , '@types/mocha' , '@types/node' ] : [ ] ) ,
292
296
] ,
293
297
{ stdio : 'inherit' }
294
298
)
0 commit comments