Skip to content
This repository was archived by the owner on Dec 27, 2018. It is now read-only.
This repository was archived by the owner on Dec 27, 2018. It is now read-only.

Use mocha commands to test with css modules #89

Description

@FrenchMajesty

Hello,

It is known that Mocha has problems with css modules. In order to successfully run tests despite them we are left with two solutions.

  • To use the ignore-styles package with mocha and use it like so:
    mocha --require ignore-styles

  • To use compiler.js to ignore .css files and use it like so:
    mocha --compilers js:babel-core/register,css:noCss-compiler.js

However I could not find any way to do this with the meteor version of mocha. Is there any way to test a React component that uses css modules?? How could I achieve that?

My setup:

  • Meteor 1.5.2
  • Npm 5.4.2
  • practicalmeteor:mocha 2.4.5_6

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