Skip to content

Commit 21fd0cf

Browse files
committed
Transform p-queue and p-timeout modules in Jest tests
1 parent db3337c commit 21fd0cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

extensions/ql-vscode/test/unit-tests/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ const config: Config = {
182182
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
183183
transformIgnorePatterns: [
184184
// These use ES modules, so need to be transformed
185-
"node_modules/(?!(?:@vscode/webview-ui-toolkit|@microsoft/.+|exenv-es6|nanoid)/.*)",
185+
"node_modules/(?!(?:@vscode/webview-ui-toolkit|@microsoft/.+|exenv-es6|nanoid|p-queue|p-timeout)/.*)",
186186
],
187187

188188
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them

extensions/ql-vscode/test/vscode-tests/jest.config.base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ const config: Config = {
183183
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
184184
transformIgnorePatterns: [
185185
// These use ES modules, so need to be transformed
186-
"node_modules/(?!(?:@vscode/webview-ui-toolkit|@microsoft/.+|exenv-es6|nanoid)/.*)",
186+
"node_modules/(?!(?:@vscode/webview-ui-toolkit|@microsoft/.+|exenv-es6|nanoid|p-queue|p-timeout)/.*)",
187187
],
188188

189189
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them

0 commit comments

Comments
 (0)