Skip to content

Using CSS Modules and PostCSS Nested doesn't work in tests #459

Closed
@talkor

Description

@talkor

When using <style module> along with postcss-nested results in an error in tests:

undefined:29:3: missing '}'

Using:
vue: 2.6.11
postcss-nested: 4.2.3
any version of vue2-jest

Example repo:
https://github.com/talkor/vue-jest-bug

Run yarn test:unit to get the above error

Is there a way to use both in tests without "losing" the class names (i.e. empty classes or undefined in class names in tests)?
Thanks

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