Skip to content

Commit

Permalink
test: disable Angular TS version check for typescript warning test
Browse files Browse the repository at this point in the history
  • Loading branch information
clydin authored and filipesilva committed Mar 21, 2018
1 parent a9c007d commit ab8ceb2
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions tests/e2e/tests/misc/typescript-warning.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import { ng, silentNpm } from '../../utils/process';
import { getGlobalVariable } from '../../utils/env';
import { updateJsonFile } from '../../utils/project';

export default async function () {
// typescript@2.8.0-dev.20180320 is not part of the officially supported range in latest stable.
let unsupportedTsVersion = '2.8.0-dev.20180320';

export default function () {
// typescript@2.7.0-dev.20180104 is not part of the officially supported range in latest stable.
let unsupportedTsVersion = '2.7.0-dev.20180104';

// Skip this test in Angular 2/4.
if (getGlobalVariable('argv').ng2 || getGlobalVariable('argv').ng4) {
return Promise.resolve();
}
await updateJsonFile('src/tsconfig.app.json', configJson => {
configJson.angularCompilerOptions = {
...configJson.angularCompilerOptions,
disableTypeScriptVersionCheck: true,
};
});

return Promise.resolve()
// Warning should show.
Expand Down

0 comments on commit ab8ceb2

Please sign in to comment.