From 0e284a1fd4d0b628d4f263862667f151b68e70e1 Mon Sep 17 00:00:00 2001 From: Jennings Zhang Date: Mon, 5 Feb 2024 14:31:38 -0500 Subject: [PATCH] Upgrade playwright-test-coverage-native@0.2.0 --- package.json | 2 +- playwright.config.ts | 1 + pnpm-lock.yaml | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 97377a8..c7054b4 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "@vitest/coverage-v8": "^1.2.1", "c8": "^9.1.0", "happy-dom": "^13.3.1", - "playwright-test-coverage-native": "^0.1.3", + "playwright-test-coverage-native": "^0.2.0", "react-dom": "^18.2.0", "react-router-dom": "^6.21.3", "use-immer": "^0.9.0", diff --git a/playwright.config.ts b/playwright.config.ts index 18e56e6..73cd69f 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -34,6 +34,7 @@ export default defineConfig({ use: { ...devices["Desktop Chrome"], coverageDir: './coverage-playwright/tmp', + coverageSourceMapHandler: '@fs', coverageSrc: './src' }, }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0ed57e2..4a1d03c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -41,8 +41,8 @@ devDependencies: specifier: ^13.3.1 version: 13.3.1 playwright-test-coverage-native: - specifier: ^0.1.3 - version: 0.1.3(@playwright/test@1.41.1) + specifier: ^0.2.0 + version: 0.2.0(@playwright/test@1.41.1) react-dom: specifier: ^18.2.0 version: 18.2.0(react@18.2.0) @@ -1274,8 +1274,8 @@ packages: hasBin: true dev: true - /playwright-test-coverage-native@0.1.3(@playwright/test@1.41.1): - resolution: {integrity: sha512-EkRswhYJ76olmBS17cOxZgfKZspbvJAsmM623qf8ms3g9AI5UsqqZLPJXQZGM3nGxt7tcZ+BU053jx/wUB0WSA==} + /playwright-test-coverage-native@0.2.0(@playwright/test@1.41.1): + resolution: {integrity: sha512-MSM5FanaTig34TIoTwZoQsJ94L7x8KsMhwkoiFaPixxoqaJE/YdnkqT9lxDIO+Mvjzef0XdsG49PWvfxAb8SVA==} peerDependencies: '@playwright/test': ^1.41.1 dependencies: