mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 13:38:18 -08:00
Set up jest with babel. Add failing test to see if it passes CI
This commit is contained in:
parent
1808c00b01
commit
771371d081
8 changed files with 7736 additions and 3 deletions
17
package.json
17
package.json
|
|
@ -2,9 +2,24 @@
|
|||
"name": "app",
|
||||
"private": "true",
|
||||
"dependencies": {
|
||||
"@babel/preset-env": "^7.15.8",
|
||||
"babel-preset-es2015": "^6.24.1",
|
||||
"esbuild": "^0.13.6"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "esbuild app/javascript/*.* --bundle --outdir=app/assets/builds"
|
||||
"build": "esbuild app/javascript/*.* --bundle --outdir=app/assets/builds",
|
||||
"test": "jest"
|
||||
},
|
||||
"devDependencies": {
|
||||
"jest": "^27.2.5"
|
||||
},
|
||||
"jest": {
|
||||
"roots": [
|
||||
"./spec/javascript"
|
||||
],
|
||||
"moduleDirectories": [
|
||||
"node_modules",
|
||||
"app/assets/javascripts"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue