diff --git a/modules/schematics/src/entity/index.spec.ts b/modules/schematics/src/entity/index.spec.ts index 4b4b83319a..8f40eec00e 100644 --- a/modules/schematics/src/entity/index.spec.ts +++ b/modules/schematics/src/entity/index.spec.ts @@ -240,9 +240,14 @@ describe('Entity Schematic', () => { describe('View engine', () => { beforeEach(() => { - const tsConfig = JSON.parse( - appTree.readContent('./projects/bar/tsconfig.app.json') - ); + // remove the first line comment from the json file + const json = appTree + .readContent('./projects/bar/tsconfig.app.json') + .split('\n') + .slice(1) + .join('\n'); + const tsConfig = JSON.parse(json); + tsConfig.angularCompilerOptions = tsConfig.angularCompilerOptions || {}; tsConfig.angularCompilerOptions.enableIvy = false; appTree.overwrite( diff --git a/modules/schematics/src/reducer/index.spec.ts b/modules/schematics/src/reducer/index.spec.ts index d6cec183a6..97eab805db 100644 --- a/modules/schematics/src/reducer/index.spec.ts +++ b/modules/schematics/src/reducer/index.spec.ts @@ -12,7 +12,7 @@ import { defaultAppOptions, } from '../../../schematics-core/testing'; -describe('Reducer Schematic', () => { +fdescribe('Reducer Schematic', () => { const schematicRunner = new SchematicTestRunner( '@ngrx/schematics', path.join(__dirname, '../../collection.json') @@ -89,9 +89,14 @@ describe('Reducer Schematic', () => { describe('View engine', () => { beforeEach(() => { - const tsConfig = JSON.parse( - appTree.readContent('./projects/bar/tsconfig.app.json') - ); + // remove the first line comment from the json file + const json = appTree + .readContent('./projects/bar/tsconfig.app.json') + .split('\n') + .slice(1) + .join('\n'); + const tsConfig = JSON.parse(json); + tsConfig.angularCompilerOptions = tsConfig.angularCompilerOptions || {}; tsConfig.angularCompilerOptions.enableIvy = false; appTree.overwrite(