File tree Expand file tree Collapse file tree 2 files changed +17
-7
lines changed
Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -240,9 +240,14 @@ describe('Entity Schematic', () => {
240240
241241 describe ( 'View engine' , ( ) => {
242242 beforeEach ( ( ) => {
243- const tsConfig = JSON . parse (
244- appTree . readContent ( './projects/bar/tsconfig.app.json' )
245- ) ;
243+ // remove the first line comment from the json file
244+ const json = appTree
245+ . readContent ( './projects/bar/tsconfig.app.json' )
246+ . split ( '\n' )
247+ . slice ( 1 )
248+ . join ( '\n' ) ;
249+ const tsConfig = JSON . parse ( json ) ;
250+
246251 tsConfig . angularCompilerOptions = tsConfig . angularCompilerOptions || { } ;
247252 tsConfig . angularCompilerOptions . enableIvy = false ;
248253 appTree . overwrite (
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import {
1212 defaultAppOptions ,
1313} from '../../../schematics-core/testing' ;
1414
15- describe ( 'Reducer Schematic' , ( ) => {
15+ fdescribe ( 'Reducer Schematic' , ( ) => {
1616 const schematicRunner = new SchematicTestRunner (
1717 '@ngrx/schematics' ,
1818 path . join ( __dirname , '../../collection.json' )
@@ -89,9 +89,14 @@ describe('Reducer Schematic', () => {
8989
9090 describe ( 'View engine' , ( ) => {
9191 beforeEach ( ( ) => {
92- const tsConfig = JSON . parse (
93- appTree . readContent ( './projects/bar/tsconfig.app.json' )
94- ) ;
92+ // remove the first line comment from the json file
93+ const json = appTree
94+ . readContent ( './projects/bar/tsconfig.app.json' )
95+ . split ( '\n' )
96+ . slice ( 1 )
97+ . join ( '\n' ) ;
98+ const tsConfig = JSON . parse ( json ) ;
99+
95100 tsConfig . angularCompilerOptions = tsConfig . angularCompilerOptions || { } ;
96101 tsConfig . angularCompilerOptions . enableIvy = false ;
97102 appTree . overwrite (
You can’t perform that action at this time.
0 commit comments