schematics icon indicating copy to clipboard operation
schematics copied to clipboard

[jest] schematic does not work with Angular CLI 8 generated projects

Open GregOnNet opened this issue 5 years ago • 2 comments

# Error
tsconfig.spec.json not found
  • tsconfig is now located in the root of the project.
  • the location of tsconfig should be read from angular.json

GregOnNet avatar Jun 25 '19 06:06 GregOnNet

  • store jest.config in root

FrankStrieter avatar Dec 20 '19 08:12 FrankStrieter

We can use @schematics/angular/utility to access Angular workspace:

import { getWorkspace } from '@schematics/angular/utility/config';
import { ProjectType } from '@schematics/angular/utility/workspace-models';

Markus-Ende avatar Dec 20 '19 08:12 Markus-Ende