Skip to content

Conversation

@sgarner
Copy link

@sgarner sgarner commented Mar 13, 2025

Proposed amendment to typeorm#11257

Using beforeEach/afterEach hooks to change the process.platform global resulted in unstable behavior in tests. The platform was not being reset to its original 'real' value after the tests were run, causing failures in other subsequent tests.

We can make this cleaner by performing the modification and resetting of process.platform synchronously inside each test, ensuring no leakage.

@OSA413
Copy link
Owner

OSA413 commented Mar 14, 2025

Looks good, let's see if it works on Windows

@OSA413 OSA413 merged commit d94762c into OSA413:try-something Mar 14, 2025
@OSA413
Copy link
Owner

OSA413 commented Mar 14, 2025

Looks like it's working on Windows, thank you

@sgarner sgarner deleted the win32-tests branch March 14, 2025 08:41
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