Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const jestConfig = require('kcd-scripts/jest')

module.exports = Object.assign(jestConfig, {
testEnvironment: 'warpdom',
coveragePathIgnorePatterns: [
...jestConfig.coveragePathIgnorePatterns,
'.macro.js$',
Expand Down
2 changes: 1 addition & 1 deletion other/misc-tests/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const babelHelpersList = require('@babel/helpers').list

module.exports = Object.assign(jestConfig, {
roots: ['.'],
testEnvironment: 'jsdom',
testEnvironment: 'warpdom',
transform: {
'^.+\\.(js|jsx|mjs)$': ['babel-jest', {rootMode: 'upward'}],
},
Expand Down
4 changes: 2 additions & 2 deletions other/ssr/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This is separate because the test environment is set via the config
// and we want most of our tests to run with jsdom, but we still want
// to make sure that the server rendering use case continues to work.
// and we want most of our tests to run with a DOM (warpdom), but we still
// want to make sure that the server rendering use case continues to work.
const jestConfig = require('kcd-scripts/config').jest

module.exports = Object.assign(jestConfig, {
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
"flow-bin": "^0.299.0",
"flow-coverage-report": "^0.8.0",
"get-pkg-repo": "5.0.0",
"jest-environment-warpdom": "^0.1.0",
"kcd-scripts": "^17.0.0",
"node-polyfill-webpack-plugin": "^4.1.0",
"npm-run-all": "^4.1.5",
Expand All @@ -139,7 +140,8 @@
"react-test-renderer": "^18.3.1",
"serve": "^14.2.5",
"start-server-and-test": "^2.1.3",
"typescript": "^5.9.3"
"typescript": "^5.9.3",
"warpdom": "^0.1.3"
},
"overrides": {
"eslint-plugin-react-hooks": "^7.1.1"
Expand Down