Default jest environment to jsdom in jest configuration

pull/1/head
rebuilt 4 years ago
parent 15cda552d9
commit ae4c08c67b

@ -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…
Cancel
Save