Skip to content

Commit 419d3f0

Browse files
committed
Improve test configuration
1 parent fc0d276 commit 419d3f0

File tree

2 files changed

+10
-354
lines changed

2 files changed

+10
-354
lines changed

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"gh-pages": "^6.2.0",
4040
"globals": "^15.14.0",
4141
"jest": "^29.7.0",
42-
"jest-environment-jsdom": "^29.7.0",
4342
"jest-image-snapshot": "^6.4.0",
4443
"markdown": "~0.5.0",
4544
"pdfjs-dist": "^2.14.305",
@@ -66,9 +65,9 @@
6665
"docs": "npm run pdf-guide && npm run website && npm run browserify-example",
6766
"lint": "eslint {lib,tests}/**/*.js",
6867
"prettier": "prettier lib tests docs",
69-
"test": "jest -i --env=node",
70-
"test:visual": "jest visual/ -i --env=node",
71-
"test:unit": "jest unit/ --env=node"
68+
"test": "jest",
69+
"test:visual": "jest visual/",
70+
"test:unit": "jest unit/"
7271
},
7372
"main": "js/pdfkit.js",
7473
"module": "js/pdfkit.es.js",
@@ -81,7 +80,7 @@
8180
"node >= v18.0.0"
8281
],
8382
"jest": {
84-
"testEnvironment": "jest-environment-jsdom",
83+
"testEnvironment": "node",
8584
"testPathIgnorePatterns": [
8685
"/node_modules/",
8786
"<rootDir>/examples/"
@@ -90,4 +89,4 @@
9089
"<rootDir>/tests/unit/setupTests.js"
9190
]
9291
}
93-
}
92+
}

0 commit comments

Comments
 (0)