mirror of
https://git.tuxpa.in/a/code-server.git
synced 2024-12-26 12:15:26 +00:00
fix: update modulePathIgnorePatterns for jest
This commit is contained in:
parent
9eba2bd4fd
commit
236717ee98
@ -147,6 +147,12 @@
|
||||
"<rootDir>/release"
|
||||
],
|
||||
"testTimeout": 30000,
|
||||
"globalSetup": "<rootDir>/test/globalSetup.ts"
|
||||
"globalSetup": "<rootDir>/test/globalSetup.ts",
|
||||
"modulePathIgnorePatterns": [
|
||||
"<rootDir>/lib/vscode",
|
||||
"<rootDir>/release-packages",
|
||||
"<rootDir>/release",
|
||||
"<rootDir>/release-standalone"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -4,6 +4,8 @@
|
||||
import { chromium, Page, Browser, BrowserContext } from "playwright"
|
||||
|
||||
module.exports = async () => {
|
||||
console.log("🚨 Running Global Setup for Jest Tests")
|
||||
console.log(" Please hang tight...")
|
||||
const browser: Browser = await chromium.launch()
|
||||
const context: BrowserContext = await browser.newContext()
|
||||
const page: Page = await context.newPage()
|
||||
@ -22,4 +24,5 @@ module.exports = async () => {
|
||||
await page.close()
|
||||
await browser.close()
|
||||
await context.close()
|
||||
console.log("✅ Global Setup for Jest Tests is now complete.")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user