[PR #3] [MERGED] feat: add tests and other such features #18

Closed
opened 2026-02-25 17:05:44 +11:00 by administrator · 0 comments

📋 Pull Request Information

Original PR: https://github.com/pieartsy/PluralFlux/pull/3
Author: @pieartsy
Created: 2/20/2026
Status: Merged
Merged: 2/20/2026
Merged by: @pieartsy

Base: mainHead: add-tests


📝 Commits (10+)

  • a3caa2d converted import syntax to ES modules
  • 5a39610 got test sort of working (jest set up is not crashing but also not mocking correctly)
  • 5e28cdf adjusted beforeeach/beforeall so more pass
  • 876f948 more correct test setup
  • 5ab0d62 converted import syntax to commonJS
  • a44e274 got test sort of working (jest set up is not crashing but also not mocking correctly)
  • 79d98c3 adjusted beforeeach/beforeall so more pass
  • 0a4bfa5 more correct test setup
  • 321fe7f more correct dockerfile and compose.yaml
  • 35b454b Revert "converted import syntax to commonJS"

📊 Changes

18 files changed (+1337 additions, -212 deletions)

View changed files

📝 .gitignore (+2 -1)
Dockerfile (+10 -0)
📝 README.md (+13 -4)
babel.config.js (+8 -0)
📝 compose.yaml (+24 -14)
jest.config.js (+10 -0)
📝 package.json (+5 -2)
📝 src/bot.js (+26 -4)
📝 src/commands.js (+12 -7)
📝 src/database.js (+8 -8)
📝 src/enums.js (+7 -5)
📝 src/helpers/importHelper.js (+10 -9)
📝 src/helpers/memberHelper.js (+255 -103)
📝 src/helpers/messageHelper.js (+12 -18)
📝 src/helpers/webhookHelper.js (+28 -37)
tests/helpers/memberHelper.test.js (+510 -0)
tests/helpers/messageHelper.test.js (+128 -0)
tests/helpers/webhookHelper.test.js (+269 -0)

📄 Description

More tests to come...


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/pieartsy/PluralFlux/pull/3 **Author:** [@pieartsy](https://github.com/pieartsy) **Created:** 2/20/2026 **Status:** ✅ Merged **Merged:** 2/20/2026 **Merged by:** [@pieartsy](https://github.com/pieartsy) **Base:** `main` ← **Head:** `add-tests` --- ### 📝 Commits (10+) - [`a3caa2d`](https://github.com/pieartsy/PluralFlux/commit/a3caa2dc42b5d76c5c8950a77dcc574edc3ac76b) converted import syntax to ES modules - [`5a39610`](https://github.com/pieartsy/PluralFlux/commit/5a39610547228a6aea22a2e2157fe1ac58ea8935) got test sort of working (jest set up is not crashing but also not mocking correctly) - [`5e28cdf`](https://github.com/pieartsy/PluralFlux/commit/5e28cdfd0167f5df966ae51637b54ed7c782d610) adjusted beforeeach/beforeall so more pass - [`876f948`](https://github.com/pieartsy/PluralFlux/commit/876f9486ad2cb3850ffa094e342981e12770610c) more correct test setup - [`5ab0d62`](https://github.com/pieartsy/PluralFlux/commit/5ab0d62bdb187f4d57842f0df28b654b4f0bcee6) converted import syntax to commonJS - [`a44e274`](https://github.com/pieartsy/PluralFlux/commit/a44e2745c5cd06284dc8e792404b011933b23305) got test sort of working (jest set up is not crashing but also not mocking correctly) - [`79d98c3`](https://github.com/pieartsy/PluralFlux/commit/79d98c36181acce4093ce38cc9d24a1352917fff) adjusted beforeeach/beforeall so more pass - [`0a4bfa5`](https://github.com/pieartsy/PluralFlux/commit/0a4bfa59adc6c5f19f23b720f6254f3bbd0b82d1) more correct test setup - [`321fe7f`](https://github.com/pieartsy/PluralFlux/commit/321fe7f0a911fa83a958a9c25140a5f0cde967ab) more correct dockerfile and compose.yaml - [`35b454b`](https://github.com/pieartsy/PluralFlux/commit/35b454bc80243780b3187f9b4f70881daa45176f) Revert "converted import syntax to commonJS" ### 📊 Changes **18 files changed** (+1337 additions, -212 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+2 -1) ➕ `Dockerfile` (+10 -0) 📝 `README.md` (+13 -4) ➕ `babel.config.js` (+8 -0) 📝 `compose.yaml` (+24 -14) ➕ `jest.config.js` (+10 -0) 📝 `package.json` (+5 -2) 📝 `src/bot.js` (+26 -4) 📝 `src/commands.js` (+12 -7) 📝 `src/database.js` (+8 -8) 📝 `src/enums.js` (+7 -5) 📝 `src/helpers/importHelper.js` (+10 -9) 📝 `src/helpers/memberHelper.js` (+255 -103) 📝 `src/helpers/messageHelper.js` (+12 -18) 📝 `src/helpers/webhookHelper.js` (+28 -37) ➕ `tests/helpers/memberHelper.test.js` (+510 -0) ➕ `tests/helpers/messageHelper.test.js` (+128 -0) ➕ `tests/helpers/webhookHelper.test.js` (+269 -0) </details> ### 📄 Description More tests to come... --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
administrator added the pull-request label 2026-02-25 17:05:44 +11:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/PluralFlux#18