mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -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
|
- add esbuild gem 'jsbundling-rails'. Unified installer for webpacker rollup and esbuild
|
||||||
- `bin/bundle install`
|
- `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
|
- clear the tmp directory to make sure asset compilation with esbuild does not complain about missing file templates
|
||||||
- bundle exec rake tmp:clear
|
- bundle exec rake tmp:clear
|
||||||
- move javascript files to new location
|
- move javascript files to new location
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "esbuild app/javascript/*.* --bundle --outdir=app/assets/builds",
|
"build": "esbuild app/javascript/*.* --bundle --outdir=app/assets/builds",
|
||||||
"test": "jest --env=jsdom"
|
"test": "jest"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"jest": "^27.2.5"
|
"jest": "^27.2.5"
|
||||||
|
|
@ -24,6 +24,7 @@
|
||||||
"moduleDirectories": [
|
"moduleDirectories": [
|
||||||
"node_modules",
|
"node_modules",
|
||||||
"app/javascript"
|
"app/javascript"
|
||||||
]
|
],
|
||||||
|
"testEnvironment": "jsdom"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue