You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When importing relative paths inside a stylesheet being made globally available using the option jest.globals['vue-jest'].resources, the test will fail with the following error:
Moreover, the test only started failing when I added CSS modules to HelloWorld.vue (<style lang="scss" module>) so it seems to be both related to vue-jest not resolving relative paths properly + using CSS modules.
The text was updated successfully, but these errors were encountered:
@lmiller1990 It would be greatly appreciated if you could find time to review the issue and PR. It's currently blocking my team... I provided a repository to reproduce the issue and a PR to fix it.
The only thing I'm not sure is how to handle the versions since it is current quite hard to follow (the stable version on npm is 3.0.7, but the release note says we should upgrade to v4, then there is also a v5 and an alpha version for v27). I'm happy to fix it in 3.0.7 instead of 4.0.1 if needed.
When importing relative paths inside a stylesheet being made globally available using the option
jest.globals['vue-jest'].resources
, the test will fail with the following error:Considering the following
src/styles/settings/breakpoints.scss
and considering that src/styles/settings/unit.scss exists, it should be able to find it.
Version
I'm using version
4.0.1
, but I had the same issue when downgrading to3.0.7
.Steps to reproduce
Run the test in this repository: https://github.com/pmrotule/vue-jest-global-resources-bug
Moreover, the test only started failing when I added CSS modules to HelloWorld.vue (
<style lang="scss" module>
) so it seems to be both related tovue-jest
not resolving relative paths properly + using CSS modules.The text was updated successfully, but these errors were encountered: