mrodal / vue-inheritance-loader

Webpack loader to be used along with vue-loader for Single File Components that provides template extension
38 stars 5 forks source link

How to use this in Jest tests? #2

Closed MatthewBooth closed 5 years ago

MatthewBooth commented 5 years ago

I'm using this and it is working great, but I cannot run unit tests with this. Could be my ignorance, but what do I need to do to get it running?

mrodal commented 5 years ago

Thats a good point, I didnt try running tests.. When I find some time I'll see what could be done

MatthewBooth commented 5 years ago

Thanks :)

I think it may have been ok with Mocha with mocha-webpack but I couldn't test fully without rewriting all my unit tests.

MatthewBooth commented 5 years ago

Oh wow, I just realised this library is a few days old! Well, it worked excellently and is exactly something I'm looking for.

Great work :+1:

mrodal commented 5 years ago

Thanks @MatthewBooth ! I'm glad you find it useful. As an update, I've investigated into this and I have an idea on how to support jest, so expect this to come!

mrodal commented 5 years ago

Here it is, let me know if it worked for you https://github.com/mrodal/vue-inheritance-loader-jest

MatthewBooth commented 5 years ago

Hey!

Excellent, I'll have a play with this during this afternoon. Thanks for the speedy update :+1: