aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2019-02-07 10:10:27 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2019-02-11 09:58:08 +0900
commitcd34f00627c35bec1cde9b154c7aeb453ea0789e (patch)
tree7e50cb57d45ca0cc1189aded1c8d6019d31ae333 /package.json
parent9cc463ed7b7be098602b72a98f72220ea6466ba2 (diff)
downloadrails-cd34f00627c35bec1cde9b154c7aeb453ea0789e.tar.gz
rails-cd34f00627c35bec1cde9b154c7aeb453ea0789e.tar.bz2
rails-cd34f00627c35bec1cde9b154c7aeb453ea0789e.zip
Install JavaScript packages before run test
Some tests are running yarn install during the test. The directory used for isolation test is not subject to yarn workspace, and it occurs because the required package is not installed. In order to avoid this, I fixed all necessary packages to be installed before run test and use symlink to `node_modules`. This is a bit complicated, as `yarn install` needs to be run in a specific directory before running the test. However, running `yarn install` every time run the test is expensive when testing locally and should be avoided.
Diffstat (limited to 'package.json')
-rw-r--r--package.json5
1 files changed, 1 insertions, 4 deletions
diff --git a/package.json b/package.json
index 43055fa6bc..e5c71777ba 100644
--- a/package.json
+++ b/package.json
@@ -4,10 +4,7 @@
"actioncable",
"actiontext",
"activestorage",
- "actionview",
- "tmp/templates/app_template",
- "railties/test/fixtures/tmp/bukkits/**/test/dummy",
- "railties/test/fixtures/tmp/bukkits/**/spec/dummy"
+ "actionview"
],
"dependencies": {
"webpack": "^4.17.1"