File tree Expand file tree Collapse file tree 4 files changed +10
-12
lines changed Expand file tree Collapse file tree 4 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 1
1
import type { Config } from "jest" ;
2
+ import { transformIgnorePatterns } from "../../test/jest-config" ;
2
3
3
4
/*
4
5
* For a detailed explanation regarding each configuration property and type check, visit:
@@ -184,10 +185,7 @@ const config: Config = {
184
185
} ,
185
186
186
187
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
187
- transformIgnorePatterns : [
188
- // These use ES modules, so need to be transformed
189
- "node_modules/(?!(?:@vscode/webview-ui-toolkit|@microsoft/.+|exenv-es6|d3|d3-(.*)|internmap|delaunator|robust-predicates)/.*)" ,
190
- ] ,
188
+ transformIgnorePatterns,
191
189
192
190
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
193
191
// unmockedModulePathPatterns: undefined,
Original file line number Diff line number Diff line change
1
+ export const transformIgnorePatterns = [
2
+ // These use ES modules, so need to be transformed
3
+ "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)/.*)" ,
4
+ ] ;
Original file line number Diff line number Diff line change 1
1
import type { Config } from "jest" ;
2
+ import { transformIgnorePatterns } from "../jest-config" ;
2
3
3
4
/*
4
5
* For a detailed explanation regarding each configuration property and type check, visit:
@@ -180,10 +181,7 @@ const config: Config = {
180
181
} ,
181
182
182
183
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
183
- transformIgnorePatterns : [
184
- // These use ES modules, so need to be transformed
185
- "node_modules/(?!(?:@vscode/webview-ui-toolkit|@microsoft/.+|exenv-es6|nanoid|p-queue|p-timeout)/.*)" ,
186
- ] ,
184
+ transformIgnorePatterns,
187
185
188
186
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
189
187
// unmockedModulePathPatterns: undefined,
Original file line number Diff line number Diff line change 1
1
import type { Config } from "jest" ;
2
2
import { resolve } from "path" ;
3
+ import { transformIgnorePatterns } from "../jest-config" ;
3
4
4
5
/*
5
6
* For a detailed explanation regarding each configuration property and type check, visit:
@@ -181,10 +182,7 @@ const config: Config = {
181
182
} ,
182
183
183
184
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
184
- transformIgnorePatterns : [
185
- // These use ES modules, so need to be transformed
186
- "node_modules/(?!(?:@vscode/webview-ui-toolkit|@microsoft/.+|exenv-es6|nanoid|p-queue|p-timeout)/.*)" ,
187
- ] ,
185
+ transformIgnorePatterns,
188
186
189
187
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
190
188
// unmockedModulePathPatterns: undefined,
You can’t perform that action at this time.
0 commit comments