Skip to content

Commit 0d7c110

Browse files
committed
fix(@schematics/angular): correct tsconfig.spec.json include for spec files
Updates the files in both application and library schematics to specifically include instead of . This ensures that only test specification files are processed for testing, preventing unintended inclusion of other TypeScript files.
1 parent c3c9ac5 commit 0d7c110

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
]
1010
},
1111
"include": [
12-
"src/**/*.ts"
12+
"src/**/*.spec.ts"
1313
]
1414
}

packages/schematics/angular/library/files/tsconfig.spec.json.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
]
1010
},
1111
"include": [
12-
"src/**/*.ts"
12+
"src/**/*.spec.ts"
1313
]
1414
}

0 commit comments

Comments
 (0)