Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
a7ea21f
dev changes
iaristide Jun 24, 2025
eb8f9a3
add dotenv deps
iaristide Jul 8, 2025
83f1542
move schema files
iaristide Jul 8, 2025
7060993
add cache dependency
iaristide Jul 11, 2025
57df76f
add blacklist and guild config hooks
iaristide Jul 11, 2025
84e177d
add blacklist and guild config schemas
iaristide Jul 11, 2025
c729ea1
add modmail schema
iaristide Jul 11, 2025
5229337
add config commands
iaristide Jul 11, 2025
616b900
add modmail progress
iaristide Jul 11, 2025
bb36552
add blacklist to setConfig guard
iaristide Aug 11, 2025
cf45bac
more modmail functionality
iaristide Aug 14, 2025
e44c720
move files
iaristide Aug 14, 2025
f97e861
add text keys
iaristide Aug 14, 2025
5e6449e
add tests for hooks
iaristide Sep 18, 2025
d0cff03
jest config setup
iaristide Sep 18, 2025
4e770a7
add vars to text action
iaristide Sep 18, 2025
dc7de53
fix bug in guildconfig
iaristide Sep 18, 2025
987725d
refac text keys and fix not found text keys
iaristide Oct 14, 2025
4f15cf9
resolve json
iaristide Oct 14, 2025
13f5f43
add version string to arc
iaristide Oct 14, 2025
bc74079
fix error
iaristide Oct 14, 2025
2901b46
add tests for placeholder and not found tex tkeys
iaristide Oct 14, 2025
6e7f27b
add text keys
iaristide Oct 14, 2025
87228e8
add timestamps to mail
iaristide Oct 14, 2025
3bd784e
add more utils
iaristide Oct 14, 2025
6ae2604
refac
iaristide Oct 15, 2025
288e422
refac
iaristide Oct 22, 2025
6249396
add autocomplete to setconfig
iaristide Oct 25, 2025
31f98da
enhancements
iaristide Oct 25, 2025
41f5334
more discord utils
iaristide Oct 25, 2025
5dc1af8
fix blacklist
iaristide Oct 25, 2025
8274aa4
add text keys
iaristide Oct 25, 2025
57d8742
modmail save
iaristide Oct 25, 2025
018ed3b
fix modmail ui
iaristide Oct 25, 2025
f4febcd
fix time
iaristide Oct 25, 2025
569b5b2
add CreateTranscript
iaristide Oct 25, 2025
81d7e8d
fix createtranscript
iaristide Oct 25, 2025
06110cf
add edit emoji
iaristide Oct 25, 2025
9d033c6
rm transcript utils and add transcript v2
iaristide Oct 25, 2025
71c09be
add message editing
iaristide Oct 25, 2025
75c1ce7
finish modmail basics feature
iaristide Oct 26, 2025
bcb5d2b
fix modmail service errors
iaristide Oct 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
export default {
preset: 'ts-jest/presets/default-esm',
extensionsToTreatAsEsm: ['.ts'],
testEnvironment: 'node',
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
transform: {
'^.+\\.tsx?$': ['ts-jest', {
useESM: true,
}],
},
testMatch: [
'**/__tests__/**/*.test.ts',
'**/?(*.)+(spec|test).ts',
],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
collectCoverageFrom: [
'src/**/*.{ts,tsx}',
'!src/**/*.d.ts',
'!src/**/__tests__/**',
],
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
};
2 changes: 2 additions & 0 deletions jest.setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Jest setup file
// This file is loaded before tests run
16 changes: 14 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,29 @@
"build": "tsc",
"dev": "node --loader ts-node/esm/transpile-only src/main.ts",
"start": "node build/main.js",
"watch": "nodemon --exec npm run dev --watch src --ext ts"
"watch": "nodemon --exec npm run dev --watch src --ext ts",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage"
},
"dependencies": {
"@discordx/importer": "^1.3.1",
"cacheables": "^2.0.0",
"discord.js": "^14.17.3",
"discordx": "^11.12.2"
"discordx": "^11.12.2",
"dotenv": "^17.1.0",
"mongoose": "^8.15.1",
"mongoose-long": "^0.8.0",
"pino": "^9.7.0"
},
"devDependencies": {
"@jest/globals": "^30.1.2",
"@types/jest": "^30.0.0",
"@types/node": "^22.10.10",
"jest": "^30.1.3",
"nodemon": "^3.1.9",
"prettier": "^3.4.2",
"ts-jest": "^29.4.2",
"ts-node": "^10.9.2",
Comment on lines +28 to 35
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

Align ts-jest with Jest 30 (prevents test runs).

You’re on Jest 30; ts-jest 29 targets Jest 29.

-    "@jest/globals": "^30.1.2",
-    "@types/jest": "^30.0.0",
+    "@jest/globals": "^30.1.2",
+    "@types/jest": "^30.0.0",
     "@types/node": "^22.10.10",
-    "jest": "^30.1.3",
+    "jest": "^30.1.3",
     "nodemon": "^3.1.9",
     "prettier": "^3.4.2",
-    "ts-jest": "^29.4.2",
+    "ts-jest": "^30.0.0",
     "ts-node": "^10.9.2",
     "typescript": "5.7.3"

🏁 Script executed:

#!/bin/bash
# Confirm version compatibility and current installed versions
node -v
npm -v
jq -r '.devDependencies["jest"], .devDependencies["ts-jest"]' package.json

Length of output: 30


🌐 Web query:

ts-jest Jest 30 compatibility version

💡 Result:

Short answer: ts-jest has not released a stable v30 — the maintained ts-jest releases are in the 29.x line and are intended to match Jest 29. So Jest 30 compatibility requires waiting for a ts-jest v30 (or a 29→30 compatibility release) or using a workaround (keep Jest at 29.x, or force-install with risks). [1][2]

Sources:

  • ts-jest releases / latest tag (latest: 29.4.x). [1]
  • Jest 30 upgrade notes (breaking changes / new requirements for Jest 30). [2]

References:
[1] ts-jest package/releases (latest: 29.x).
[2] Jest — Upgrading from v29 to v30.


🌐 Web query:

ts-jest 30.0.0 npm release

💡 Result:

There is no ts-jest 30.0.0 release. The ts-jest releases are currently in the 29.x series (latest tags show v29.4.5; npm/Snyk metadata also list 29.4.x as the newest). [1][2]

Sources:

  • ts-jest GitHub tags (latest tags show v29.4.5). [1]
  • ts-jest package metadata / registry listings (latest version 29.4.x). [2]


Jest 30 is incompatible with ts-jest 29 — requires immediate resolution.

The current configuration pairs Jest 30 (^30.1.3) with ts-jest 29 (^29.4.2). ts-jest latest releases are in the 29.x line and are intended to match Jest 29, and Jest 30 compatibility requires waiting for a ts-jest v30. No stable ts-jest 30.0.0 release currently exists; the latest ts-jest release is 29.4.5.

Choose one:

  • Downgrade Jest to 29.x to restore compatibility with ts-jest 29.x
  • Await ts-jest 30 release before upgrading Jest to 30
🤖 Prompt for AI Agents
package.json lines 28-35: the project currently uses Jest ^30.1.3 with ts-jest
^29.4.2 which are incompatible; change the Jest dependency to a 29.x release to
match ts-jest (e.g., set "jest" to a latest 29.x like "^29.5.0") and ensure
@jest/globals remains on a 29.x-compatible version (adjust if necessary), then
run npm install and the test suite to verify everything passes; alternatively,
if you prefer keeping Jest 30, hold off until ts-jest publishes a stable v30 and
revert this change then.

"typescript": "5.7.3"
},
Expand Down
Loading