Skip to content

Conversation

owlstronaut
Copy link
Contributor

@owlstronaut owlstronaut commented Feb 13, 2025

Move t.mock() inside t.beforeEach() to ensure opts.js reads the correct
environment variables after backupEnv() clears them. This prevents tests
from failing locally due to pre-existing environment variables like GIT_ASKPASS.

I noticed while running the tests locally, mine was failing, but passing for the CI.

@owlstronaut owlstronaut marked this pull request as ready for review February 13, 2025 21:33
@owlstronaut owlstronaut requested a review from a team as a code owner February 13, 2025 21:33
@owlstronaut owlstronaut merged commit 29dfb33 into main Feb 14, 2025
21 checks passed
@owlstronaut owlstronaut deleted the owlstronaut/local-run-test-fix branch February 14, 2025 16:05
@github-actions github-actions bot mentioned this pull request Feb 18, 2025
owlstronaut pushed a commit that referenced this pull request Feb 18, 2025
🤖 I have created a release *beep* *boop*
---


## [6.0.2](v6.0.1...v6.0.2)
(2025-02-18)
### Dependencies
*
[`618c70c`](618c70c)
[#223](#223) remove promise-inflight
(#223)
### Chores
*
[`29dfb33`](29dfb33)
[#222](#222) ensure tests correctly mock
environment variables before loading opts.js (#222) (@owlstronaut)
*
[`0fc4208`](0fc4208)
[#220](#220) bump npm-package-arg from
11.0.3 to 12.0.1 (#220) (@dependabot[bot])
*
[`52d8b0e`](52d8b0e)
[#221](#221) bump @npmcli/template-oss
from 4.23.3 to 4.24.1 (#221) (@dependabot[bot], @npm-cli-bot)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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