Skip to content
This repository was archived by the owner on Aug 19, 2022. It is now read-only.
This repository was archived by the owner on Aug 19, 2022. It is now read-only.

Silence "Unsupported CSS" warnings during tests #350

@levithomason

Description

@levithomason

Per this comment in #215 I am attempting to bypass css checks during tests. I believe I am supposed to provide a mock exenv module during tests to accomplish this.

We're using Webpack so I am aliasing calls to the exenv module and pointing them instead to this mock:

// exenv-mock.js
const exenv = {
  canUseDOM: true,
  canUseEventListeners: true
};

export default exenv;

This did not silence the warning so I also tried providing a global ExecutionEnvironment variable that resolves the exenv-mock.js above. This also did not silence the warnings.

I am sure I am missing something simple. Any help appreciated.

EDIT
We're using karma + mocha + phantomjs for this particular test.

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