Skip to content

Commit b345bb5

Browse files
Teamopdgp1130
authored andcommitted
fix(@schematics/angular): remove unused spec tsconfig outDir
1 parent a07d2ec commit b345bb5

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

packages/schematics/angular/application/files/common-files/tsconfig.spec.json.template

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
{
44
"extends": "<%= relativePathToWorkspaceRoot %>/tsconfig.json",
55
"compilerOptions": {
6-
"outDir": "<%= relativePathToWorkspaceRoot %>/out-tsc/spec",
76
"types": [
87
"<%= testRunner === 'vitest' ? 'vitest/globals' : 'jasmine' %>"
98
]

packages/schematics/angular/application/index_spec.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,11 @@ describe('Application Schematic', () => {
108108
it('should set the right paths in the tsconfig.spec.json', async () => {
109109
const tree = await schematicRunner.runSchematic('application', defaultOptions, workspaceTree);
110110

111-
const { extends: _extends } = readJsonFile(tree, '/projects/foo/tsconfig.spec.json');
111+
const { compilerOptions, extends: _extends } = readJsonFile(
112+
tree,
113+
'/projects/foo/tsconfig.spec.json',
114+
);
115+
expect(compilerOptions.outDir).toBeUndefined();
112116
expect(_extends).toBe('../../tsconfig.json');
113117
});
114118

0 commit comments

Comments
 (0)