Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove define of process.env from base config #34

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Oct 4, 2023

Removing process.env is only required for apps, as we now build apps not in lib mode it is removed automatically by vite.

Fixes testing issues when using vitest.

@susnux susnux added bug Something isn't working 3. to review Ready to review labels Oct 4, 2023
@codecov
Copy link

codecov bot commented Oct 4, 2023

Codecov Report

Merging #34 (55de856) into main (d575353) will increase coverage by 25.49%.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##             main      #34       +/-   ##
===========================================
+ Coverage   54.73%   80.22%   +25.49%     
===========================================
  Files           7        8        +1     
  Lines         539      536        -3     
  Branches       22       32       +10     
===========================================
+ Hits          295      430      +135     
+ Misses        222       74      -148     
- Partials       22       32       +10     
Files Coverage Δ
lib/baseConfig.ts 86.30% <ø> (-0.80%) ⬇️
__fixtures__/app_process_env/main.js 0.00% <0.00%> (ø)

... and 2 files with indirect coverage changes

@susnux susnux force-pushed the fix/remove-process-env-defines branch from 1d4e208 to fed0253 Compare October 4, 2023 01:43
Removing `process.env` is only required for apps, as we now build apps not in lib mode it is removed automatically by vite

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the fix/remove-process-env-defines branch from fed0253 to 55de856 Compare October 4, 2023 01:45
@skjnldsv skjnldsv merged commit 28a71a8 into main Oct 4, 2023
10 of 11 checks passed
@skjnldsv skjnldsv deleted the fix/remove-process-env-defines branch October 4, 2023 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Ready to review bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants