Skip to content

Ember 5.4: provide in a rendering test failing to find provideConsumeContextContainer #23

Open
@runspired

Description

@runspired

I've setup our rendering and application tests to auto-provide a store context in a beforeEach.

hooks.beforeEach(function (assert) {
  provide('store', this.owner.lookup('service:store'));
});

This is throwing the below error:

Could not find "provideConsumeContextContainer" instance in runtime environment

Which comes from here:

'Could not find "provideConsumeContextContainer" instance in runtime environment',

Is there something else I need to do prior to calling provide? Is this an incompatibility with our Ember Version? Something else?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions