Ionic4: Unit testing a component

I have created a new project and created a new component called “simple” in components/simple. So, I now have components/simple/simple.component.spec.ts.

I would expect that if I run npm test it would pass, right?

But, simple.component.spec.ts looks like this:

import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { SimplePage } from './simple.page';

describe('SimplePage', () => {
  let component: SimplePage;
  let fixture: ComponentFixture<SimplePage>;

  beforeEach(async(() => {
  ... etc ...

And, there is no file called simple.page.ts. There is, of course, a simple.component.ts.

So, the test fails.

Is this by design? If so, how do I fix this? What goes in simple.page.ts?

Thanks.

Vic

Update: I’ve filed a bug against this.