Update transformIgnorePatterns
This commit is contained in:
Родитель
a94e5fe9f4
Коммит
0a2ade3c9d
|
@ -1,4 +1,5 @@
|
|||
import type { Config } from "jest";
|
||||
import { transformIgnorePatterns } from "../../test/jest-config";
|
||||
|
||||
/*
|
||||
* For a detailed explanation regarding each configuration property and type check, visit:
|
||||
|
@ -184,10 +185,7 @@ const config: Config = {
|
|||
},
|
||||
|
||||
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
|
||||
transformIgnorePatterns: [
|
||||
// These use ES modules, so need to be transformed
|
||||
"node_modules/(?!(?:@vscode/webview-ui-toolkit|@microsoft/.+|exenv-es6|d3|d3-(.*)|internmap|delaunator|robust-predicates)/.*)",
|
||||
],
|
||||
transformIgnorePatterns,
|
||||
|
||||
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
|
||||
// unmockedModulePathPatterns: undefined,
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
export const transformIgnorePatterns = [
|
||||
// These use ES modules, so need to be transformed
|
||||
"node_modules/(?!(?:@vscode/webview-ui-toolkit|@microsoft/.+|@octokit/.+|before-after-hook|d3|d3-(.*)|delaunator|exenv-es6|internmap|nanoid|p-queue|p-timeout|robust-predicates|universal-user-agent)/.*)",
|
||||
];
|
|
@ -1,4 +1,5 @@
|
|||
import type { Config } from "jest";
|
||||
import { transformIgnorePatterns } from "../jest-config";
|
||||
|
||||
/*
|
||||
* For a detailed explanation regarding each configuration property and type check, visit:
|
||||
|
@ -180,10 +181,7 @@ const config: Config = {
|
|||
},
|
||||
|
||||
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
|
||||
transformIgnorePatterns: [
|
||||
// These use ES modules, so need to be transformed
|
||||
"node_modules/(?!(?:@vscode/webview-ui-toolkit|@microsoft/.+|exenv-es6|nanoid|p-queue|p-timeout)/.*)",
|
||||
],
|
||||
transformIgnorePatterns,
|
||||
|
||||
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
|
||||
// unmockedModulePathPatterns: undefined,
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import type { Config } from "jest";
|
||||
import { resolve } from "path";
|
||||
import { transformIgnorePatterns } from "../jest-config";
|
||||
|
||||
/*
|
||||
* For a detailed explanation regarding each configuration property and type check, visit:
|
||||
|
@ -181,10 +182,7 @@ const config: Config = {
|
|||
},
|
||||
|
||||
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
|
||||
transformIgnorePatterns: [
|
||||
// These use ES modules, so need to be transformed
|
||||
"node_modules/(?!(?:@vscode/webview-ui-toolkit|@microsoft/.+|exenv-es6|nanoid|p-queue|p-timeout)/.*)",
|
||||
],
|
||||
transformIgnorePatterns,
|
||||
|
||||
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
|
||||
// unmockedModulePathPatterns: undefined,
|
||||
|
|
Загрузка…
Ссылка в новой задаче