You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The installation guide suggests using @vue/cli-plugin-unit-jest to run Jest tests. However, it goes on to list steps that are covered by that plugin (at least as of v4.5.0), such as :
Installing dependences like vue-jest, @babel/core, babel-jest... which are transitive dependencies of @vue/cli-plugin-unit-jest. I come from the Maven world so I'm not sure what the practice is in npm but I would tend not to redeclare those dependencies.
Setting up the moduleFileExtensions, moduleNameMapper and transform options, which are already set up by using preset: '@vue/cli-plugin-unit-jest'. That option is part of the default configuration after a call to vue add unit-jest, so it works out of the box.
My suggestion would be to have a section containing the instructions for manual setup and one for the instruction which are applicable in all cases (like the Code Coverage section).
Documentation Feedback
The installation guide suggests using
@vue/cli-plugin-unit-jest
to run Jest tests. However, it goes on to list steps that are covered by that plugin (at least as of v4.5.0), such as :vue-jest
,@babel/core
,babel-jest
... which are transitive dependencies of@vue/cli-plugin-unit-jest
. I come from the Maven world so I'm not sure what the practice is in npm but I would tend not to redeclare those dependencies.moduleFileExtensions
,moduleNameMapper
andtransform
options, which are already set up by usingpreset: '@vue/cli-plugin-unit-jest'
. That option is part of the default configuration after a call tovue add unit-jest
, so it works out of the box.My suggestion would be to have a section containing the instructions for manual setup and one for the instruction which are applicable in all cases (like the Code Coverage section).
Affected documentation page: https://vue-test-utils.vuejs.org/installation/#using-vue-test-utils-with-jest-recommended
The text was updated successfully, but these errors were encountered: