-
Notifications
You must be signed in to change notification settings - Fork 229
Expand file tree
/
Copy pathjest-config.ts
More file actions
38 lines (37 loc) · 872 Bytes
/
jest-config.ts
File metadata and controls
38 lines (37 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// These are all the packages that DO need to be transformed. All other packages will be ignored.
// These packages all use ES modules, so need to be transformed
const transformScopes = [
"@faker-js",
"@microsoft",
"@octokit",
"@vscode-elements",
"@lit",
"@lit-labs",
"@hpcc-js",
];
const transformPackages = [
"before-after-hook",
"d3",
"data-uri-to-buffer",
"delaunator",
"exenv-es6",
"fetch-blob",
"formdata-polyfill",
"internmap",
"lit",
"nanoid",
"p-queue",
"p-timeout",
"robust-predicates",
"universal-user-agent",
"until-async",
];
const transformWildcards = ["d3-(.*)", "lit-(.*)"];
const transformPatterns = [
...transformScopes.map((scope) => `${scope}/.+`),
...transformPackages,
...transformWildcards,
];
export const transformIgnorePatterns = [
`node_modules/(?!(?:${transformPatterns.join("|")})/.*)`,
];