File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,18 @@ describe('Add {N} schematic', () => {
148
148
expect ( maps ) . toContain ( 'src/*.ts' ) ;
149
149
} ) ;
150
150
151
+ it ( 'should create the tsconfig.spec.json (web) with files' , ( ) => {
152
+ const specTsConfigPath = '/tsconfig.spec.json' ;
153
+ expect ( appTree . files ) . toContain ( specTsConfigPath ) ;
154
+
155
+ const specTsConfig = JSON . parse ( getFileContent ( appTree , specTsConfigPath ) ) ;
156
+ const files = specTsConfig . files ;
157
+
158
+ expect ( files ) . toBeDefined ( ) ;
159
+ expect ( files . includes ( 'src/test.ts' ) ) . toBeTruthy ( ) ;
160
+ expect ( files . includes ( 'src/polyfills.ts' ) ) . toBeTruthy ( ) ;
161
+ } ) ;
162
+
151
163
it ( 'should modify the base tsconfig.json to include path mappings' , ( ) => {
152
164
const baseTsConfigPath = '/tsconfig.json' ;
153
165
expect ( appTree . files ) . toContain ( baseTsConfigPath ) ;
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ describe('Shared Application Schematic', () => {
27
27
expect ( files ) . toContain ( '/foo/.gitignore' ) ;
28
28
expect ( files ) . toContain ( '/foo/package.json' ) ;
29
29
expect ( files ) . toContain ( '/foo/tsconfig.tns.json' ) ;
30
+ expect ( files ) . toContain ( '/foo/tsconfig.spec.json' ) ;
30
31
31
32
expect ( files ) . toContain ( '/foo/src/package.json' ) ;
32
33
expect ( files ) . toContain ( '/foo/src/main.tns.ts' ) ;
You can’t perform that action at this time.
0 commit comments