-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support tsconfig.spec.json in root dir (#309)
Angular version >= 8 project do locate all of their tsconfig files in the root directory by default. This preset now supports the config files in the root directory by default as well, without any necessity to adjust the jest configuration.
- Loading branch information
Showing
7 changed files
with
29 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"outDir": "./out-tsc/app", | ||
"module": "es2015", | ||
"baseUrl": "src" | ||
}, | ||
"exclude": [ | ||
"src/karmaTest.ts", | ||
"src/**/*.spec.ts" | ||
] | ||
} |
12 changes: 6 additions & 6 deletions
12
example/src/tsconfig.spec.json → example/tsconfig.spec.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"outDir": "../out-tsc/spec", | ||
"outDir": "./out-tsc/spec", | ||
"module": "commonjs", | ||
"target": "es5", | ||
"baseUrl": "", | ||
"baseUrl": "src", | ||
"types": ["jest", "node"], | ||
"allowJs": true | ||
}, | ||
"files": [ | ||
"karmaTest.ts" | ||
"src/karmaTest.ts" | ||
], | ||
"include": [ | ||
"**/*.spec.ts", | ||
"**/*.d.ts" | ||
"src/**/*.spec.ts", | ||
"src/**/*.d.ts" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters