Skip to content

Conversation

@Globegitter
Copy link

@Globegitter Globegitter commented Aug 17, 2018

We are creating our babelConfig programatically and with babel-jest it is already possible to pass that in, but not here. With these changes I can now write my custom vue-jest transform in the following way:

...
module.exports = {
    process(src, filename, jestConfig) {
        return vueJest.process(src, filename, jestConfig, {}, babelOptions);
    },
};

@Globegitter
Copy link
Author

Tests are passing now.

@eddyerburgh
Copy link
Member

I think this should be added to the Jest config option object, rather than added as an extra object. Could you also please add some tests?

@justinhelmer
Copy link
Contributor

@eddyerburgh - done. Check #110 / #111 .

@justinhelmer
Copy link
Contributor

I believe this PR can be closed now that #111 has been merged.

@eddyerburgh eddyerburgh closed this Oct 7, 2018
@Globegitter
Copy link
Author

@justinhelmer thanks for that I will check it out but it does sound good.

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.

3 participants