Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 9024f1c

Browse files
committed
test: enable strict mode testing
1 parent ea49db1 commit 9024f1c

File tree

15 files changed

+40
-16
lines changed

15 files changed

+40
-16
lines changed

integration/common/src/helloworld/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ import {enableProdMode} from '@angular/core';
1212
import {platformBrowser} from '@angular/platform-browser';
1313
import {HelloWorldModuleNgFactory} from './app.ngfactory';
1414

15-
window['doBootstrap'] = function() {
15+
(window as any)['doBootstrap'] = function() {
1616
platformBrowser().bootstrapModuleFactory(HelloWorldModuleNgFactory);
1717
};

integration/express-engine-ivy-prerender/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { APP_BASE_HREF } from '@angular/common';
99
import { existsSync } from 'fs';
1010

1111
// The Express app is exported so that it can be used by serverless Functions.
12-
export function app() {
12+
export function app(): express.Express {
1313
const server = express();
1414
const distFolder = join(process.cwd(), 'dist/express-engine-ivy-prerender/browser');
1515
const indexHtml = existsSync(join(distFolder, 'src/home.html')) ? 'src/home.html' : 'index.html';

integration/express-engine-ivy-prerender/tsconfig.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"compilerOptions": {
44
"baseUrl": "./",
55
"outDir": "./dist/out-tsc",
6+
"forceConsistentCasingInFileNames": true,
7+
"strict": true,
8+
"noImplicitReturns": true,
9+
"noFallthroughCasesInSwitch": true,
610
"sourceMap": true,
711
"declaration": false,
812
"downlevelIteration": true,

integration/express-engine-ivy/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { APP_BASE_HREF } from '@angular/common';
99
import { existsSync } from 'fs';
1010

1111
// The Express app is exported so that it can be used by serverless Functions.
12-
export function app() {
12+
export function app(): express.Express {
1313
const server = express();
1414
const distFolder = join(process.cwd(), 'dist/express-engine-ivy/browser');
1515
const indexHtml = existsSync(join(distFolder, 'index.original.html')) ? 'index.original.html' : 'index';

integration/express-engine-ivy/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if (environment.production) {
88
enableProdMode();
99
}
1010

11-
window['doBootstrap'] = () => {
11+
(window as any)['doBootstrap'] = () => {
1212
platformBrowserDynamic().bootstrapModule(AppModule)
1313
.catch(err => console.error(err));
1414
};

integration/express-engine-ivy/tsconfig.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"compilerOptions": {
44
"baseUrl": "./",
55
"outDir": "./dist/out-tsc",
6+
"forceConsistentCasingInFileNames": true,
7+
"strict": true,
8+
"noImplicitReturns": true,
9+
"noFallthroughCasesInSwitch": true,
610
"sourceMap": true,
711
"declaration": false,
812
"downlevelIteration": true,

integration/express-engine-ve/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { APP_BASE_HREF } from '@angular/common';
99
import { existsSync } from 'fs';
1010

1111
// The Express app is exported so that it can be used by serverless Functions.
12-
export function app() {
12+
export function app(): express.Express {
1313
const server = express();
1414
const distFolder = join(process.cwd(), 'dist/express-engine-ve/browser');
1515
const indexHtml = existsSync(join(distFolder, 'index.original.html')) ? 'index.original.html' : 'index';

integration/express-engine-ve/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if (environment.production) {
88
enableProdMode();
99
}
1010

11-
window['doBootstrap'] = () => {
11+
(window as any)['doBootstrap'] = () => {
1212
platformBrowserDynamic().bootstrapModule(AppModule)
1313
.catch(err => console.error(err));
1414
};

integration/express-engine-ve/tsconfig.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"compilerOptions": {
44
"baseUrl": "./",
55
"outDir": "./dist/out-tsc",
6+
"forceConsistentCasingInFileNames": true,
7+
"strict": true,
8+
"noImplicitReturns": true,
9+
"noFallthroughCasesInSwitch": true,
610
"sourceMap": true,
711
"declaration": false,
812
"downlevelIteration": true,

integration/hapi-engine-ivy/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if (environment.production) {
88
enableProdMode();
99
}
1010

11-
window['doBootstrap'] = () => {
11+
(window as any)['doBootstrap'] = () => {
1212
platformBrowserDynamic().bootstrapModule(AppModule)
1313
.catch(err => console.error(err));
1414
};

0 commit comments

Comments
 (0)