Merge pull request #483 from StroepWafel/fix-failing-tests-due-to-jsdom

Fix failing tests due to jsdom
This commit is contained in:
Alphons Joseph authored and GitHub committed 2026-09-01 20:14:48 +08:00
commit 72cce2cc55
2 files changed
+6 -2

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
export default {
preset: 'ts-jest',
testEnvironment: 'jsdom',
testEnvironment: 'node',
roots: ['<rootDir>/src'],
testMatch: [
'**/__tests__/**/*.ts',
@@ -24,4 +24,4 @@ export default {
'src/**/*.ts',
'!src/**/*.d.ts',
],
};
};
+4
View File
@@ -1,3 +1,7 @@
/**
* @jest-environment jsdom
*/
import stringToHTML from "./stringToHTML";
describe("stringToHTML", () => {