Skip to content

Detect MockRenderFactory outside of beforeAll or beforeEach #629

Closed
@satanTime

Description

in this case we should provide install().

describe('', () => {
  const factory = MockRenderFactory(TargetComponent);

  beforeAll(() => factory.install());

  it('', () => {
    const fixture = factory(); // should do own install or throw if it isn't possible with the suggestion to use `.install()`.
  });
});

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions