Edward Wardell-Yerburgh

Results 88 comments of Edward Wardell-Yerburgh

Yeah source mapping isn't perfect yet. Thanks 😄

Try adding `"mapCoverage": true` to the `jest` field in package.json. Like this - https://github.com/eddyerburgh/jest-vue/blob/master/package.json#L73

Can you report bugs to https://github.com/eddyerburgh/jest-vue?

If I could pass an options object to `run` then that would work: ```js const options = { presets: [require('@babel/preset-env')] } require("@babel/cli").run(["src", "--out-dir", "dist", "opts", options]) ``` The `dir` method...

@guatedude2 that's what I ended up doing but it would be nice to have a guaranteed API rather than depending on an implementation detail.

Is the child component created with Vue.extend? If so then this library doesn't support adding globals. I recommend using [@vue/test-utils](https://github.com/vuejs/vue-test-utils) instead.

`shallow` stubs every child components render functions and lifecycle events, and then mounts it. ```js shallow({ render: h => h('div', ComponentWithProps, { }, [ { name: 'ChildComponent', mounted() { console.log('mounted'...

@rmartins90 Yes I think you're right Maybe the default behavior should be to return a component with the minimal props required to identify it and test that it's been passed...

Yep, I'll add this tonight

Ok, I've fixed this in 2.4.2