Skip to content

Commit a23e18b

Browse files
author
cod1k
committed
Clear Sentry cache before running E2E tests
Add a command to delete the Sentry-related cache during the E2E test setup process. This ensures a clean testing environment and prevents potential issues caused by stale cache. This is why running tests locally after any change might be wrong. Not sure this is the best solution, or no. But, at least results are constant now
1 parent f2f8e1f commit a23e18b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dev-packages/e2e-tests/run.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ async function run(): Promise<void> {
6666
}
6767

6868
await asyncExec('pnpm clean:test-applications', { env, cwd: __dirname });
69+
await asyncExec('pnpm cache delete "@sentry/*"', { env, cwd: __dirname });
6970

7071
const testAppPaths = appName ? [appName.trim()] : globSync('*', { cwd: `${__dirname}/test-applications/` });
7172

0 commit comments

Comments
 (0)