Transform p-queue and p-timeout modules in Jest tests

This commit is contained in:
Koen Vlaswinkel
2023-10-03 11:52:51 +02:00
parent db3337cc1b
commit 21fd0cfd29
2 changed files with 2 additions and 2 deletions

View File

@@ -182,7 +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)/.*)",
"node_modules/(?!(?:@vscode/webview-ui-toolkit|@microsoft/.+|exenv-es6|nanoid|p-queue|p-timeout)/.*)",
],
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them

View File

@@ -183,7 +183,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)/.*)",
"node_modules/(?!(?:@vscode/webview-ui-toolkit|@microsoft/.+|exenv-es6|nanoid|p-queue|p-timeout)/.*)",
],
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them