FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: ignore failures on writeToCache by orgads · Pull Request #7893 · vitest-dev/vitest · GitHub

fix: ignore failures on writeToCache - #7893

Merged
sheremet-va merged 1 commit into
vitest-dev:mainfrom
orgads:cache-no-fail
May 5, 2025
Merged

sheremet-va merged 1 commit into
vitest-dev:mainfrom
orgads:cache-no-fail

Conversation

orgads commented Apr 27, 2025

Copy link
Copy Markdown
Contributor

The cache is not mandatory. No reason to abort when it fails.

This can happen when node_modules is not writable for example.

Description

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

  • It's really useful if your PR references an issue where it is discussed ahead of time. If the feature is substantial or introduces breaking changes without a discussion, PR might be closed.
  • Ideally, include a test that fails without this PR but passes with it.
  • Please, don't make changes to pnpm-lock.yaml unless you introduce a new test example.

Tests

  • Run the tests with pnpm test:ci.

The cache is not mandatory. No reason to abort when it fails.

This can happen when node_modules is not writable for example.

orgads commented Apr 27, 2025

Copy link
Copy Markdown
Contributor Author

This change together with vitejs/vite#19952 allows running tests in docker, when running as a different user than the one used in the image (usually root or node, with uid 1000).

Copy link
Copy Markdown
Collaborator

This change together with vitejs/vite#19952 allows running tests in docker, when running as a different user than the one used in the image (usually root or node, with uid 1000).

I think this should be possible today with vitest --configLoader runner and custom cacheDir https://stackblitz.com/edit/vitest-dev-vitest-t9e1fblp?file=vite.config.ts

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL