vue-jest icon indicating copy to clipboard operation
vue-jest copied to clipboard

Missing features? roadmap to feature parity?

Open frankandrobot opened this issue 5 years ago • 3 comments

As per the official docs:

We have created the vue-jest preprocessor which can handle most common SFC features, but it currently does not have 100% feature parity with vue-loader.

  1. What are the missing features? As per the README, CSS support seems to be one. Any others? This also opens up the question of which test runner is recommended for different apps.
  2. Is there a roadmap for having vue-jest have 100% feature parity with vue-loader?

frankandrobot avatar Feb 12 '19 21:02 frankandrobot

There's no plan to reach 100% feature parity with vue-loader, for these two reasons:

  1. Custom blocks
  2. Style

vue-jest doesn't support custom blocks. There's no plan to transform custom blocks explicitly in vue-jest, although we might add an option to pass in custom transformers.

vue-jest also doesn't fully support styles. We compile style blocks with vue-component-compiler-utils, and add class names to the $style object, but we don't inject inline styles, and we don't plan to.

eddyerburgh avatar Feb 16 '19 14:02 eddyerburgh

@frankandrobot https://github.com/vuejs/vue-jest/issues/116#issuecomment-486851364

Ni55aN avatar Apr 25 '19 21:04 Ni55aN

Not sure if this is the best place to ask this question: is there any estimate of v4.0 release? It seems version 3.4 is not handling babel.config.js returning function any more, switching to 4.0beta solves quite a lot of issues.

BroiSatse avatar Oct 18 '19 21:10 BroiSatse