Skip to content

Conversation

@cmath10
Copy link
Contributor

@cmath10 cmath10 commented May 22, 2022

Hello! I noticed that this change was added only for vue3. This PR adds the same less processing as it is in vue3-jest. Without this patch, I'm catching this:

SyntaxError: undefined in input on line 334, column 1:
333 @import (reference) "../../../../../../css/less/variables.less";
334 @import (reference) "../../../../../../css/less/mixins.less";
335 

  ● Test suite failed to run


    [vue-jest] Error: Vue template compilation failed

      at error (../node_modules/@vue/vue2-jest/lib/utils.js:122:9)
      at logResultErrors (../node_modules/@vue/vue2-jest/lib/utils.js:134:5)
      at processStyle (../node_modules/@vue/vue2-jest/lib/process-style.js:104:5)
      at ../node_modules/@vue/vue2-jest/lib/process.js:87:13
          at Array.map (<anonymous>)
      at processStyle (../node_modules/@vue/vue2-jest/lib/process.js:86:6)
      at Object.module.exports [as process] (../node_modules/@vue/vue2-jest/lib/process.js:103:24)
      at ScriptTransformer.transformSource (../node_modules/@jest/transform/build/ScriptTransformer.js:612:31)
      at ScriptTransformer._transformAndBuildScript (../node_modules/@jest/transform/build/ScriptTransformer.js:758:40)
      at ScriptTransformer.transform (../node_modules/@jest/transform/build/ScriptTransformer.js:815:19)
      at Object.<anonymous> (...)

@lmiller1990
Copy link
Member

Thanks!

@lmiller1990 lmiller1990 merged commit 77c821d into vuejs:master Aug 16, 2022
@lmiller1990
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants