Skip to content

fix: e2e readme test shouldn't use npm cache#79

Open
ryanrasti wants to merge 1 commit into
mainfrom
ryan_readme_test
Open

fix: e2e readme test shouldn't use npm cache#79
ryanrasti wants to merge 1 commit into
mainfrom
ryan_readme_test

Conversation

@ryanrasti
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts the README end-to-end usage test to avoid relying on npm’s offline cache behavior and to preserve temporary artifacts on failure for easier debugging.

Changes:

  • Make --prefer-offline conditional based on install mode (only for working-tree installs).
  • Move temp directory deletion to only occur on successful test completion (so failures keep the temp dir).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/readme.test.ts
? bashSnippet.replace(/\btypegres\b/, JSON.stringify(`file:${REPO_ROOT}`))
: bashSnippet
).replace(/\bnpm install\b/, "npm install --no-audit --no-fund --prefer-offline");
).replace(/\bnpm install\b/, `npm install --no-audit --no-fund ${mode === 'working-tree' ? '--prefer-offline' : ''}`);
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.

2 participants