mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 13:38:18 -08:00
Add missing javascript dependencies to package.json. Move javascripts files to app/javascript. Add first javascript test. Change test mode
This commit is contained in:
parent
414eb83f6d
commit
7ba020d04d
13 changed files with 83 additions and 54 deletions
18
package.json
18
package.json
|
|
@ -4,22 +4,26 @@
|
|||
"dependencies": {
|
||||
"@babel/preset-env": "^7.15.8",
|
||||
"babel-preset-es2015": "^6.24.1",
|
||||
"esbuild": "^0.13.6"
|
||||
"esbuild": "^0.13.6",
|
||||
"@rails/actioncable": "^6.0.0",
|
||||
"@rails/activestorage": "^6.0.0",
|
||||
"@rails/ujs": "^6.0.0",
|
||||
"turbolinks": "^5.2.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "esbuild app/javascript/*.* --bundle --outdir=app/assets/builds",
|
||||
"test": "jest"
|
||||
"test": "jest --env=jsdom"
|
||||
},
|
||||
"devDependencies": {
|
||||
"jest": "^27.2.5"
|
||||
},
|
||||
"jest": {
|
||||
"roots": [
|
||||
"./spec/javascript"
|
||||
"roots": [
|
||||
"./spec/javascript"
|
||||
],
|
||||
"moduleDirectories": [
|
||||
"node_modules",
|
||||
"app/assets/javascripts"
|
||||
"moduleDirectories": [
|
||||
"node_modules",
|
||||
"app/javascript"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue