fraserxu / fraserxu/react-testing-recipes

Stylus-modules usage

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
76
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Hi there. I'm using css-modules and stylus as preprocessor.
When I'm running tape, I get such kind of error

`
babel-tape-runner tests/**/*.test.js | faucet && tape-babel-css-modules tests/**/*.test.js | faucet

.../node_modules/babel-core/lib/transformation/file/index.js:548
throw err;
^

SyntaxError: .../src/components/Component/styles.styl: Unexpected token (1:1)

> 1 | @import '~mixins'

`

This is my npm script
`
"test": "tape-babel-css-modules tests/**/*.test.js | faucet"
`

What should I do?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.