mirror of https://github.com/coder/code-server.git
fix: update modulePathIgnorePatterns for jest
This commit is contained in:
parent
9eba2bd4fd
commit
236717ee98
|
@ -147,6 +147,12 @@
|
||||||
"<rootDir>/release"
|
"<rootDir>/release"
|
||||||
],
|
],
|
||||||
"testTimeout": 30000,
|
"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"
|
import { chromium, Page, Browser, BrowserContext } from "playwright"
|
||||||
|
|
||||||
module.exports = async () => {
|
module.exports = async () => {
|
||||||
|
console.log("🚨 Running Global Setup for Jest Tests")
|
||||||
|
console.log(" Please hang tight...")
|
||||||
const browser: Browser = await chromium.launch()
|
const browser: Browser = await chromium.launch()
|
||||||
const context: BrowserContext = await browser.newContext()
|
const context: BrowserContext = await browser.newContext()
|
||||||
const page: Page = await context.newPage()
|
const page: Page = await context.newPage()
|
||||||
|
@ -22,4 +24,5 @@ module.exports = async () => {
|
||||||
await page.close()
|
await page.close()
|
||||||
await browser.close()
|
await browser.close()
|
||||||
await context.close()
|
await context.close()
|
||||||
|
console.log("✅ Global Setup for Jest Tests is now complete.")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue