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

Does not remove src/test.ts from tsconfig.spec.json #15

@Halt001

Description

@Halt001

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:

  1. run ng new my-ng8-app
  2. run ng g @briebug/jest-schematic:add
  3. 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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions