I've used ng new my-app --minimal
to scaffold an Angular 5 CLI app to play around with. After doing so for a bit, I found that I did want a spec file for something. So what I did was:
- Create a file
/src/app/my-thing.ts
with a class - Create a file
/src/app/my-thing.spec.ts
with contentdescribe('MyThing', () => { ... }
But obviously describe(...)
cannot be found, because --minimal
skips setting up tests, so there's nothing there to support it.
How do I properly add a tests setup that'll work nicely with ng test
?