Archived
1
0

fix: update modulePathIgnorePatterns for jest

This commit is contained in:
Joe Previte
2021-02-01 15:26:22 -07:00
parent 9eba2bd4fd
commit 236717ee98
2 changed files with 10 additions and 1 deletions

View File

@ -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.")
}