Skip to content

Commit 236717e

Browse files
committed
fix: update modulePathIgnorePatterns for jest
1 parent 9eba2bd commit 236717e

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
@@ -147,6 +147,12 @@
147147
"<rootDir>/release"
148148
],
149149
"testTimeout": 30000,
150-
"globalSetup": "<rootDir>/test/globalSetup.ts"
150+
"globalSetup": "<rootDir>/test/globalSetup.ts",
151+
"modulePathIgnorePatterns": [
152+
"<rootDir>/lib/vscode",
153+
"<rootDir>/release-packages",
154+
"<rootDir>/release",
155+
"<rootDir>/release-standalone"
156+
]
151157
}
152158
}

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)