Closed pmrotule closed 10 months ago
@lmiller1990 Would you have time to have a look?
Will release this one now.
@pmrotule it seems this fix is breaking our unit test run with the error you originally fixed in this pr: https://github.com/vuejs/vue-jest/pull/373.
On Mac it works but on Windows machines it does not.
Error: Can't find stylesheet to import. ╷ 1 │ @import "XXXX path = correct and file exists"; │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ╵
After reverting your change locally our vue2 tests start working again:
Any ideas?
@remcobeunk I would need more information to debug.
Can you provide a reproduction repo or stackblitz?
Our project uses SASS CSS pre-processor Global resources config? No idea which config you want, jest specifically or all configs? But because project is end of live we are not going to invest more time into this problem.
We set our project fixed to version of 29.2.5 that works for all of our developers. Sorry I cannot help you more with this.
It seems like the fix I've made for relative paths in global resources in vue2-jest v26 (https://github.com/vuejs/vue-jest/pull/373) has not been ported to the other versions (not in v27, v28, v29). We recently upgraded to v29 and faced the same issue so this PR is making the same changes, but for v29 in both Vue 2 and Vue 3 (I tested it and it works as expected).
More details found in my previous PR: https://github.com/vuejs/vue-jest/pull/373