lib/install/setup.rb in vuejs-1.1.0.beta5 vs lib/install/setup.rb in vuejs-1.1.0.beta6
- old
+ new
@@ -10,15 +10,15 @@
"environment.config.merge(alias)\n",
before: "module.exports"
scripts = <<-eos
"scripts": {
- "test": "jest",
- "assets:precompile": "yarn install; rails assets:precompile",
- "webpack-dev-server": "./bin/webpack-dev-server",
"rails server": "rails server",
- "yarn install": "yarn install"
+ "webpack-dev-server": "./bin/webpack-dev-server",
+ "rails assets:precompile": "yarn install; rails assets:precompile",
+ "yarn install": "yarn install",
+ "yarn test": "jest"
},
"jest": {
"moduleFileExtensions": [
"js",
"vue"
@@ -41,19 +41,20 @@
"#{scripts}",
after: "\"private\": true,\n"
say "Adding test presets to .babelrc"
babelrc = <<-eos
- "test": {
- "presets": [
- ["env", { "targets": { "node": "current" }}]
- ]
+ "env": {
+ "test": {
+ "presets": [
+ ["env", { "targets": { "node": "current" }}]
+ ]
+ }
},
eos
insert_into_file Rails.root.join(".babelrc").to_s,
"#{babelrc}",
before: " \"presets\": ["
-
-say "Adding @vue/cli-service to make Vue-ui compatible"
-run "yarn add @vue/cli-service --dev"
-
+
+say "Adding @vue/test-utils and other Jest dependencies"
+run "yarn add @vue/test-utils jest jest-serializer-vue vue-jest babel-jest"
\ No newline at end of file