Skip to content

Commit 0b3e481

Browse files
clydinfilipesilva
authored andcommitted
test: disable strict TS version check for TS2.7 test
1 parent 80c3edc commit 0b3e481

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/e2e/tests/build/typescript/typescript-2_7.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
import { ng, npm } from '../../../utils/process';
2+
import { updateJsonFile } from '../../../utils/project';
23

34
export default async function () {
5+
// Disable the strict TS version check for nightly
6+
await updateJsonFile('src/tsconfig.app.json', configJson => {
7+
configJson.angularCompilerOptions = {
8+
...configJson.angularCompilerOptions,
9+
disableTypeScriptVersionCheck: true,
10+
};
11+
});
12+
413
await npm('install', '[email protected]');
514
await ng('build');
615
await ng('build', '--prod');

0 commit comments

Comments
 (0)