Skip to content

Commit 9eb7cf0

Browse files
committed
fix build errors
1 parent 4ed40a8 commit 9eb7cf0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/@angular/cli/models/webpack-configs/test.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@ import { WebpackTestOptions } from '../webpack-test-config';
1414
*/
1515

1616

17-
1817
export function getTestConfig(testConfig: WebpackTestOptions) {
1918

2019
const configPath = CliConfig.configFilePath();
2120
const projectRoot = path.dirname(configPath);
2221
const appConfig = CliConfig.fromProject().config.apps[0];
23-
const extraRules = [];
22+
const extraRules: any[] = [];
2423

2524
if (testConfig.codeCoverage) {
2625
extraRules.push({

packages/@angular/cli/plugins/karma.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const init: any = (config: any) => {
4949

5050
// The `files` entry serves the file from `/base/{asset.input}/{asset.glob}`.
5151
// We need to add a URL rewrite that exposes the asset as `/{asset.output}/{asset.glob}`.
52-
let relativePath, proxyPath;
52+
let relativePath: string, proxyPath: string;
5353
if (fs.existsSync(assetPath)) {
5454
relativePath = path.relative(config.basePath, assetPath);
5555
proxyPath = path.join(pattern.output, pattern.glob);

0 commit comments

Comments
 (0)