Skip to content

Commit 56aa515

Browse files
committed
fix: update modulePathIgnorePatterns for jest
1 parent 28e807b commit 56aa515

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,12 @@
140140
}
141141
},
142142
"testTimeout": 30000,
143-
"globalSetup": "<rootDir>/test/globalSetup.ts"
143+
"globalSetup": "<rootDir>/test/globalSetup.ts",
144+
"modulePathIgnorePatterns": [
145+
"<rootDir>/lib/vscode",
146+
"<rootDir>/release-packages",
147+
"<rootDir>/release",
148+
"<rootDir>/release-standalone"
149+
]
144150
}
145151
}

test/globalSetup.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import { chromium, Page, Browser, BrowserContext } from "playwright"
55

66
module.exports = async () => {
7+
console.log("🚨 Running Global Setup for Jest Tests")
8+
console.log(" Please hang tight...")
79
const browser: Browser = await chromium.launch()
810
const context: BrowserContext = await browser.newContext()
911
const page: Page = await context.newPage()
@@ -22,4 +24,5 @@ module.exports = async () => {
2224
await page.close()
2325
await browser.close()
2426
await context.close()
27+
console.log("✅ Global Setup for Jest Tests is now complete.")
2528
}

0 commit comments

Comments
 (0)