Skip to content

environment test not set when configuring polly without --environment=test #927

@oliverlj

Description

@oliverlj

Hello

I have added pollyjs to my project

// config/polly.js
module.exports = function (env) {
  return {
    // Addon Configuration Options
    enabled: env === 'test',
  };
};

but it is not enabled. I have to put --environment=test in the command line

yarn ember test --server works good
yarn ember exam --environment=test --server --random works good
yarn ember exam --server --random failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions