diff --git a/codegenerator/cli/templates/dynamic/init_templates/shared/package.json.hbs b/codegenerator/cli/templates/dynamic/init_templates/shared/package.json.hbs index 984de85ae..d5ca16ae8 100644 --- a/codegenerator/cli/templates/dynamic/init_templates/shared/package.json.hbs +++ b/codegenerator/cli/templates/dynamic/init_templates/shared/package.json.hbs @@ -6,7 +6,7 @@ "clean": "tsc --clean", "build": "tsc --build", "watch": "tsc --watch", - "mocha": "ts-mocha test/**/*.ts", + "mocha": "ts-mocha -p tsconfig.json --require ts-node/register --exit test/**/*.ts", {{/if}} {{#if is_rescript}} "clean": "rescript clean", diff --git a/codegenerator/cli/templates/static/blank_template/typescript/tsconfig.json b/codegenerator/cli/templates/static/blank_template/typescript/tsconfig.json index 230241339..78a7e9a82 100644 --- a/codegenerator/cli/templates/static/blank_template/typescript/tsconfig.json +++ b/codegenerator/cli/templates/static/blank_template/typescript/tsconfig.json @@ -12,7 +12,12 @@ "esModuleInterop": true, "resolveJsonModule": true, "skipLibCheck": true, - "module": "CommonJS" + "module": "CommonJS", + "strictNullChecks": true, + "strictFunctionTypes": true, + "strictPropertyInitialization": true, + "noImplicitThis": true, + "alwaysStrict": true }, "include": [ "src",