Questions tagged [ngentest]

3 questions
4
votes
1 answer

error TS1127: Invalid character when running Karma tests in Angular 7

I'm getting errors error TS1127: Invalid character in the Visual Studio Code terminal, when running a Karma test for an Angular 7 app CLI version - 7.3.9 I have one single Karma test specification in the app (I removed all of the spec files that…
Chris Halcrow
  • 28,994
  • 18
  • 176
  • 206
1
vote
2 answers

Unable to change the configuration from jest to karma ngentest

I am trying to auto generate unit test code for angular 8 using ngentest library. But when i tried to change the default configuration from jest to karma, even when i changed in ngentest.config.js file of the ngentest module or i copy pasted…
RK6
  • 424
  • 1
  • 5
  • 23
0
votes
0 answers

Generating Unit tests in Angular 16 (get ERR_REQUIRE_ESM from ngentest)

I am trying to generate unit tests from CLI generated app in Angular 16. Used to do it with ngentest, however if I try that now, getting error: \src\app> gentest app.component.ts Error [ERR_REQUIRE_ESM]: require() of ES Module…
user1981152
  • 119
  • 1
  • 1
  • 10