lib/install/test.rb in vueonrails-0.1.0 vs lib/install/test.rb in vueonrails-0.2.0
- old
+ new
@@ -22,16 +22,14 @@
"<rootDir>/node_modules/jest-serializer-vue"
]
},
eos
-say "Adding scripts and jest configuration to package.json"
insert_into_file Rails.root.join("package.json").to_s,
"#{scripts}",
after: "\"private\": true,\n"
-say "Adding test presets to .babelrc"
babelrc = <<-eos
"test": {
"presets": [
["env", { "targets": { "node": "current" }}]
]
@@ -40,7 +38,6 @@
insert_into_file Rails.root.join(".babelrc").to_s,
"#{babelrc}",
before: " \"presets\": ["
-say "Adding @vue/test-util and other Jest dependencies"
run "yarn add jest-serializer-vue vue-jest babel-jest --no-progress --silent"
\ No newline at end of file