mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 13:38:18 -08:00
Default jest environment to jsdom in jest configuration
This commit is contained in:
parent
15cda552d9
commit
ae4c08c67b
2 changed files with 4 additions and 3 deletions
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
- add esbuild gem 'jsbundling-rails'. Unified installer for webpacker rollup and esbuild
|
||||
- `bin/bundle install`
|
||||
- `bin/rails javascript:install:esbuild
|
||||
- `bin/rails javascript:install:esbuild`
|
||||
- clear the tmp directory to make sure asset compilation with esbuild does not complain about missing file templates
|
||||
- bundle exec rake tmp:clear
|
||||
- move javascript files to new location
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
},
|
||||
"scripts": {
|
||||
"build": "esbuild app/javascript/*.* --bundle --outdir=app/assets/builds",
|
||||
"test": "jest --env=jsdom"
|
||||
"test": "jest"
|
||||
},
|
||||
"devDependencies": {
|
||||
"jest": "^27.2.5"
|
||||
|
|
@ -24,6 +24,7 @@
|
|||
"moduleDirectories": [
|
||||
"node_modules",
|
||||
"app/javascript"
|
||||
]
|
||||
],
|
||||
"testEnvironment": "jsdom"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue