This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Description
Describe the bug
After running ng g @briebug/jest-schematic:add
there is still a reference to src/test.ts
left in tsconfig.spec.json
. (This is with ng8)
The reason is that your code does indeed remove src/test.ts
but looks for test.ts
(not src/test.ts
) in the tsconfig.spec.json
file.
I tried making a PR because that describes the problem and the possible fix the best but I couldn't figure out how to fix the then failing test in the sandbox.
To Reproduce
Steps to reproduce the behavior:
- run
ng new my-ng8-app
- run
ng g @briebug/jest-schematic:add
- Observe
tsconfig.spec.json
has still a reference to src/test.ts
Expected behavior
The removal of src/test.ts
from tsconfig.spec.json
Screenshots
Desktop (please complete the following information):
- OS: Mac
- Node version: v10.16.0
- NPM version: 6.9.0
- App type Angular CLI
- Angular version: "@angular/core": "~8.2.5"