Skip to content

Commit

Permalink
conditionally install unit testing deps
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckyMaler authored and ZachJW34 committed Jun 22, 2020
1 parent 94b9580 commit 7a34196
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions libs/vue-plugin/src/schematics/application/schematic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,15 @@ function addJest(options: NormalizedSchema): Rule {
`;
tree.overwrite(`${options.projectRoot}/jest.config.js`, content);
return tree;
}
},
addDepsToPackageJson(
{},
{
'@vue/cli-plugin-unit-jest': '~4.3.0',
'@vue/test-utils': '1.0.0-beta.31'
},
true
)
]);
}

Expand Down Expand Up @@ -262,10 +270,8 @@ export default function(options: ApplicationSchematicSchema): Rule {
},
{
'@vue/cli-plugin-typescript': '~4.3.0',
'@vue/cli-plugin-unit-jest': '~4.3.0',
'@vue/cli-service': '~4.3.0',
'@vue/eslint-config-typescript': '^5.0.2',
'@vue/test-utils': '1.0.0-beta.31',
'eslint-plugin-vue': '^6.2.2',
'vue-template-compiler': '^2.6.11'
},
Expand Down

0 comments on commit 7a34196

Please sign in to comment.