Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
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
57 changes: 57 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@
"lint-staged": {
"stellar-payment-platform/**/*.js": "eslint",
"payment-dashboard/**/*.{js,jsx}": "npm --prefix payment-dashboard run lint"
},
"dependencies": {
"bad-words": "^3.0.4",
"xss": "^1.0.15"
}
}
25 changes: 25 additions & 0 deletions stellar-payment-platform/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions stellar-payment-platform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@faker-js/faker": "^10.5.0",
"@prisma/client": "^6.1.0",
"@stellar/stellar-sdk": "^16.0.1",
"bad-words": "^3.0.4",
"compression": "^1.8.1",
"connect-timeout": "^1.9.1",
"cors": "^2.8.5",
Expand Down
7 changes: 7 additions & 0 deletions stellar-payment-platform/receipts.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ jest.mock('dotenv', () => ({ config: jest.fn() }));

jest.mock('./src/cleanup-cron', () => ({ scheduleCleanupJob: jest.fn() }));

// bad-words ships as ESM; Jest runs in CJS mode — mock it to avoid transform errors.
jest.mock('bad-words', () => {
return jest.fn().mockImplementation(() => ({
isProfane: jest.fn(() => false),
}));
});

// The receipts endpoint never touches the database, but loading server.js does
// instantiate the Prisma client — mock it so no real connection is created.
jest.mock('./prismaClient', () => ({
Expand Down
Loading
Loading