From 236717ee986acb1e6d46b7786e0772f805bdbc9e Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Mon, 1 Feb 2021 15:26:22 -0700 Subject: [PATCH] fix: update modulePathIgnorePatterns for jest --- package.json | 8 +++++++- test/globalSetup.ts | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 28ff7f668..c5f32a5f6 100644 --- a/package.json +++ b/package.json @@ -147,6 +147,12 @@ "/release" ], "testTimeout": 30000, - "globalSetup": "/test/globalSetup.ts" + "globalSetup": "/test/globalSetup.ts", + "modulePathIgnorePatterns": [ + "/lib/vscode", + "/release-packages", + "/release", + "/release-standalone" + ] } } diff --git a/test/globalSetup.ts b/test/globalSetup.ts index 4904c0c3d..daaf7921b 100644 --- a/test/globalSetup.ts +++ b/test/globalSetup.ts @@ -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.") }