mirror of
https://github.com/pieartsy/PluralFlux.git
synced 2026-04-14 12:05:28 +10:00
[PR #21] [MERGED] feat: Add unit tests #21
Reference in New Issue
Block a user
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/pieartsy/PluralFlux/pull/21
Author: @pieartsy
Created: 2/25/2026
Status: ✅ Merged
Merged: 2/25/2026
Merged by: @pieartsy
Base:
main← Head:add-tests📝 Commits (10+)
a3caa2dconverted import syntax to ES modules5a39610got test sort of working (jest set up is not crashing but also not mocking correctly)5e28cdfadjusted beforeeach/beforeall so more pass876f948more correct test setup5ab0d62converted import syntax to commonJSa44e274got test sort of working (jest set up is not crashing but also not mocking correctly)79d98c3adjusted beforeeach/beforeall so more pass0a4bfa5more correct test setup321fe7fmore correct dockerfile and compose.yaml35b454bRevert "converted import syntax to commonJS"📊 Changes
18 files changed (+1747 additions, -856 deletions)
View changed files
📝
.dockerignore(+1 -1)➕
.env.jest(+2 -0)📝
README.md(+1 -1)📝
package-lock.json(+165 -135)📝
package.json(+5 -2)📝
src/bot.js(+41 -28)📝
src/commands.js(+77 -45)📝
src/enums.js(+5 -4)📝
src/helpers/importHelper.js(+3 -3)📝
src/helpers/memberHelper.js(+256 -341)📝
src/helpers/messageHelper.js(+3 -8)➕
src/helpers/utils.js(+29 -0)➕
tests/bot.test.js(+322 -0)➕
tests/commands.test.js(+183 -0)➕
tests/helpers/importHelper.test.js(+100 -0)📝
tests/helpers/memberHelper.test.js(+534 -279)📝
tests/helpers/messageHelper.test.js(+1 -9)➕
tests/helpers/utils.test.js(+19 -0)📄 Description
Tests are mostly complete (though some are failing -- to be fixed in the async/await refactor.
Also refactored, fixed bugs found while testing, and added ability to type
pf;minstead ofpf;member.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.