Skip to content

Commit

Permalink
set keepProcessEnv to false and re-enable react module-resoluti…
Browse files Browse the repository at this point in the history
…on test (#107)
  • Loading branch information
dario-piotrowicz authored Dec 16, 2024
1 parent 91ca74f commit f605226
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export function createCloudflareEnvironmentOptions(
],
},
},
keepProcessEnv: true,
keepProcessEnv: false,
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ describe('module resolution', async () => {
* special meaning to us.
*/
describe('third party packages resolutions', () => {
// TODO: we skip this test on build because a `ReferenceError: process is not defined` is thrown
// (https://github.com/flarelabs-net/vite-plugin-cloudflare/issues/82)
test.skipIf(isBuild)('react', async () => {
test('react', async () => {
const result = await getJsonResponse('/third-party/react');
expect(result).toEqual({
'(react) reactVersionsMatch': true,
Expand Down

0 comments on commit f605226

Please sign in to comment.