Sha256: 7fdb0c91a81bab807a17dfc750fef61093b76a8ff3abc582980bea97376da82a
Contents?: true
Size: 1.15 KB
Versions: 5
Compression:
Stored size: 1.15 KB
Contents
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" }, "jest": { "moduleFileExtensions": [ "js", "vue" ], "moduleNameMapper": { "^@/(.*)$": "<rootDir>/app/javascript/parts/$1" }, "transform": { "^.+\\\\\\.js$": "<rootDir>/node_modules/babel-jest", ".*\\\\\\.(vue)$": "<rootDir>/node_modules/vue-jest" }, "snapshotSerializers": [ "<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" }}] ] }, eos 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"
Version data entries
5 entries across 5 versions & 1 rubygems