From 5c76844a418632af092d50309fc4a124bb0239ae Mon Sep 17 00:00:00 2001 From: Torben Sorensen Date: Thu, 27 Nov 2025 20:04:50 -0800 Subject: [PATCH] fix some integration tests now that PriceHistoryChart.test.tx is disabled --- .gitea/workflows/deploy.yml | 2 ++ src/hooks/useApiOnMount.ts | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index d679a703..c3b9c13d 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -124,8 +124,10 @@ jobs: echo "Processing V8 coverage data from the integration test server..." # Create a dedicated output directory for the server's coverage report. mkdir -p .coverage/integration-server || echo "Directory .coverage/integration-server already exists." + mkdir -p .coverage/tmp/integration-server || echo "Directory .coverage/tmp/integration-server already exists." # Run c8: read raw files from the temp dir, and output an Istanbul JSON report. # We only generate the 'json' report here because it's all nyc needs for merging. + echo "Server coverage report about to be generated..." npx c8 report --reporter=json --temp-directory .coverage/tmp/integration-server --reports-dir .coverage/integration-server echo "Server coverage report generated. Verifying existence:" ls -l .coverage/integration-server/coverage-final.json diff --git a/src/hooks/useApiOnMount.ts b/src/hooks/useApiOnMount.ts index 7f0181b5..fc9a448f 100644 --- a/src/hooks/useApiOnMount.ts +++ b/src/hooks/useApiOnMount.ts @@ -26,8 +26,6 @@ export function useApiOnMount( useEffect(() => { execute(...args); // The `deps` array is passed in by the consumer of the hook. - // We disable the exhaustive-deps rule here because `execute` and `args` are intentionally excluded. - // eslint-disable-next-line react-hooks/exhaustive-deps }, deps); return rest;