mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-22 06:41:45 +08:00
test: add test for strict workspace
This commit is contained in:
parent
bcfccc93f8
commit
43e43bfacb
@ -1,10 +0,0 @@
|
|||||||
import {updateTsConfig} from '../../utils/project';
|
|
||||||
import {ng} from '../../utils/process';
|
|
||||||
|
|
||||||
|
|
||||||
export default function() {
|
|
||||||
return updateTsConfig(json => {
|
|
||||||
json['compilerOptions']['noImplicitAny'] = true;
|
|
||||||
})
|
|
||||||
.then(() => ng('build'));
|
|
||||||
}
|
|
7
tests/legacy-cli/e2e/tests/build/strict-workspace.ts
Normal file
7
tests/legacy-cli/e2e/tests/build/strict-workspace.ts
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import {ng} from '../../utils/process';
|
||||||
|
import { createProject } from '../../utils/project';
|
||||||
|
|
||||||
|
export default async function() {
|
||||||
|
await createProject('strict-workspace-test-project', '--strict');
|
||||||
|
await ng('build');
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user