From bbfaa42f582177e78507933f1a3c05a8f62a3d70 Mon Sep 17 00:00:00 2001 From: Stefan Dietz Date: Wed, 8 Nov 2023 09:45:19 +0100 Subject: [PATCH] Fix Knip issues --- packages/tools/visual-tests/.knip.json | 4 ++-- packages/tools/visual-tests/playwright.config.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/tools/visual-tests/.knip.json b/packages/tools/visual-tests/.knip.json index 2fec858c0ae..b31cba07d08 100644 --- a/packages/tools/visual-tests/.knip.json +++ b/packages/tools/visual-tests/.knip.json @@ -1,8 +1,8 @@ { - "entry": ["src/index.ts"], + "entry": ["src/index.js"], "ignoreBinaries": [], "ignoreDependencies": ["@public-ui/sample-react", "serve"], - "project": ["src/**/*.ts"], + "project": ["src/**/*.js"], "rules": { "classMembers": "warn" } diff --git a/packages/tools/visual-tests/playwright.config.js b/packages/tools/visual-tests/playwright.config.js index 5f58ebc52eb..8633a2090f0 100644 --- a/packages/tools/visual-tests/playwright.config.js +++ b/packages/tools/visual-tests/playwright.config.js @@ -12,9 +12,9 @@ console.log('Serving React Sample app:', URL); */ export default defineConfig({ testDir: './tests', - snapshotDir: path.join(process.env.KOLIBRI_CWD, 'snapshots'), + snapshotDir: path.join(process.env.KOLIBRI_CWD ?? '', 'snapshots'), // snapshotPathTemplate: '', - outputDir: path.join(process.env.KOLIBRI_CWD, 'test-results'), + outputDir: path.join(process.env.KOLIBRI_CWD ?? '', 'test-results'), /* Run tests in files in parallel */ fullyParallel: true, /* Fail the build on CI if you accidentally left test.only in the source code. */