Open emman27 opened 6 years ago
@emman27 were you ever able to get this to work. I'm completely blocked.
@signal-intrusion Unfortunately not. I've moved to vue-jest. If you're on a relatively new project. I'd suggest setting up with vue-cli also - they've recently added Jest as one of their default configs.
Guy unfortunately I don't have now much capacity to investigate this bug, I'd assume it's related to .babelrc config
try to use the default .babelrc
config in this repo
@vire Your suggestion worked perfectly for me. Thank you. I have a nuxt project and I am configuring jest to work with my Nuxt components.
I'm submitting a ... (check one with "x")
Current behavior
I've used jest-vue-preprocessor since the start of my project to work with files. Recently, I've added process.env (using Webpack's define plugin) to my project, and it gives me the following error.
Expected behavior
Minimal reproduction of the problem with instructions Relevant sections of
What is the motivation / use case for changing the behavior? Er I just want it to work
Please tell us about your environment: Ubuntu 16.04, bash.
jest-vue-preprocessor: 1.3.1
Node version : 8.9.1
Platform: Linux
As a side note, I've tried replacing jest-vue-preprocessor with vue-jest, and the transpilation process goes fine, which is why I'm assuming the error lies here and not in something else. However vue-jest has problems with test coverage reporting which I can't deal with either.