mirror of
https://github.com/EddieTheCubeHead/Stagnum.git
synced 2026-04-26 06:05:49 +03:00
[PR #71] [MERGED] Fix tests compiling without .babelrc #265
Labels
No labels
bug
bug
client
design
documentation
feature
feature
infrastructure
pull-request
ready for development
server
server
spike
technical work
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Stagnum#265
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/EddieTheCubeHead/Stagnum/pull/71
Author: @tuomasmustakallio
Created: 2/12/2024
Status: ✅ Merged
Merged: 2/13/2024
Merged by: @tuomasmustakallio
Base:
master← Head:fix-testing-without-babelrc📝 Commits (1)
a861bb6Fix tests compiling without .babelrc📊 Changes
3 files changed (+51 additions, -4 deletions)
View changed files
➖
client/.babelrc(+0 -3)📝
client/jest.config.ts(+50 -0)📝
client/next.config.mjs(+1 -1)📄 Description
Tests compile with babel instead of next.js compiler. Babel is used for testing because it seems to be a bit more accurate than v8. This can be changed if it affects performance too much by compiling with babel.
Setting up Jest with Babel:
https://nextjs.org/docs/pages/building-your-application/testing/jest
Tradeoffs of v8 vs Babel
https://github.com/jestjs/jest/issues/11188
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.