Skip to content

Commit 54d39bd

Browse files
Update deps (#1427)
Co-authored-by: Lenz Weber-Tronic <[email protected]>
1 parent 9b60a1b commit 54d39bd

File tree

9 files changed

+586
-572
lines changed

9 files changed

+586
-572
lines changed

babel.config.cjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: ["@babel/preset-env"],
3+
};

jest.config.js

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
1+
const esModules = [
2+
"bail",
3+
"comma-separated-tokens",
4+
"decode-named-character-reference",
5+
"devlop",
6+
"estree-util-.+",
7+
"hast-util-.+",
8+
"html-url-attributes",
9+
"is-plain-obj",
10+
"lodash-es",
11+
"mdast-util-.+",
12+
"micromark",
13+
"property-information",
14+
"react-base16-styling",
15+
"react-json-tree",
16+
"react-markdown",
17+
"remark-.+",
18+
"space-separated-tokens",
19+
"trim-lines",
20+
"trough",
21+
"unified",
22+
"unist-.+",
23+
"vfile",
24+
"vfile-message",
25+
].join("|");
26+
127
export default {
2-
preset: "ts-jest",
28+
preset: "ts-jest/presets/js-with-babel",
329
setupFilesAfterEnv: ["./test.setup.ts"],
430
testEnvironment: "jsdom",
531
globals: {
@@ -11,11 +37,11 @@ export default {
1137
"/node_modules/",
1238
"/development/",
1339
],
40+
transformIgnorePatterns: [`/node_modules/(?!${esModules})/`],
1441
moduleNameMapper: {
1542
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
1643
"<rootDir>/src/__mocks__/fileMock.js",
1744
"\\.(css|less)$": "<rootDir>/src/__mocks__/styleMock.js",
18-
"react-markdown": "<rootDir>/src/__mocks__/react-markdown.js",
1945
"rehype-raw": "<rootDir>/src/__mocks__/noop.js",
2046
"remark-gfm": "<rootDir>/src/__mocks__/noop.js",
2147
"remark-github": "<rootDir>/src/__mocks__/noop.js",

0 commit comments

Comments
 (0)