kristerkari / react-native-sass-transformer

Use Sass to style your React Native apps.
MIT License
222 stars 19 forks source link

Jest setup #52

Closed almeidabbm closed 1 year ago

almeidabbm commented 2 years ago

Not quite an issue, more of a question...

I haven't been able to go around the .scss imports when using Jest for tests. A solution that I have yet to try is to add moduleNameMapper like:

"moduleNameMapper":  {
    "something.scss": "<rootDir>/path/to/something.js"
}

Wondering how you have been dealing with this scenario

kristerkari commented 2 years ago

This a good way to handle the css files in the test. 👍