-
Notifications
You must be signed in to change notification settings - Fork 618
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: fixed problem with jsdom in tests
- Loading branch information
Sasho Mihajlov
authored and
Sasho Mihajlov
committed
Oct 2, 2023
1 parent
a04816b
commit f08a2ee
Showing
8 changed files
with
39 additions
and
7 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// @ts-nocheck | ||
// noinspection JSConstantReassignment | ||
const { TextEncoder, TextDecoder } = require("util"); | ||
|
||
global.TextEncoder = TextEncoder; | ||
global.TextDecoder = TextDecoder; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
const base = require("../../jest.config.base"); | ||
|
||
module.exports = { | ||
...base({ path: __dirname }) | ||
...base({ path: __dirname }), | ||
moduleNameMapper: { | ||
"\\.(css|sass)$": "identity-obj-proxy" | ||
}, | ||
setupFilesAfterEnv: [require.resolve("./__tests__/setupEnv.ts")] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { WebinyEditorTheme, webinyEditorTheme } from "~/themes/webinyLexicalTheme"; | ||
import { EditorThemeClasses } from "lexical"; | ||
|
||
/** | ||
* Get webiny theme used for lexical editor | ||
*/ | ||
export const getTheme = (): EditorThemeClasses | WebinyEditorTheme => { | ||
return webinyEditorTheme; | ||
}; |