JeB

Results 172 comments of JeB

The problem with requiring all the `.ts` files in `test.ts` is that it will slow down the tests even when run without coverage (it will still load all the files...

@kpaxton right, not working after upgrade. Looking for solution. I believe the problem is in `AngularCompilerPlugin` which probably looks now only on `tsconfig.json` and disregards the context. I bet if...

@kpaxton well, I've implemented another workaround (see updated SO [answer](https://stackoverflow.com/questions/42280401/angular-cli-test-coverage-all-files/47495736#47495736)). In short, you should add another `tsconfig` which includes all the files, add another app (which uses this `tsconfig`) to...

@jeanpaulattard @demisx Yeah, Angular CLI has changed quite a lot so the workaround won't work. I personally ended up switching to Jest.

Please try regenerating `package-lock.json` (remove and run `npm install`).

Unfortunately `mjs` is not yet supported by `@angular-builders/jest`. It should be addressed and implemented properly like it was done with [`custom-webpack`](https://github.com/just-jeb/angular-builders/commit/9d8cd2d9a5ee8ad859c2b89203e6450c4be16502). That means: - Defining the API (there should be...

I doubt it's possible to have ESM and CommonJS at the same time. Your app can be either CommonJS or ESM but not both of them.

Do I get it right that with Angular v13 it works as expected and with Angular 14 not?

Could you please provide a repo with minimal reproduction? Also, a workaround to try in meanwhile - use [`ng run`](https://angular.io/cli/run) instead of `ng test`. In your case it would be...