Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
d715444
feat: safe aggregate
andrea-zucca Jan 9, 2026
9d653ef
chore: add test e2e
andrea-zucca Jan 10, 2026
0bbc9c6
feat: fix rules and tests
andrea-zucca Jan 10, 2026
fe7f9c8
chore: add tests
andrea-zucca Jan 10, 2026
daef161
fix: reset password endpoint and auth tests
andrea-zucca Jan 10, 2026
0dcb9f6
fix: reset password
andrea-zucca Jan 10, 2026
f7b3d5f
feat: remove sendgrid module
andrea-zucca Jan 11, 2026
1219fd1
fix: payload reset password legacy
andrea-zucca Jan 11, 2026
f5d0b96
fix: exports and import modulo in functions
andrea-zucca Jan 11, 2026
df05cca
chore: add auth tests
andrea-zucca Jan 11, 2026
3972b9a
chore: add functions tests
andrea-zucca Jan 11, 2026
ef0d4e9
chore: translate title tests
andrea-zucca Jan 11, 2026
aec94cc
feat: security check
andrea-zucca Jan 11, 2026
346fb12
feat: add rate limit auth
andrea-zucca Jan 11, 2026
ac6b331
feat: add basic auth swagger UI
andrea-zucca Jan 11, 2026
c9dcf48
feat: add rate limit reset password
andrea-zucca Jan 11, 2026
db8204d
feat: check refresh token
andrea-zucca Jan 11, 2026
8ac3084
fix: revoke token
andreazuccaspindox Jan 12, 2026
9ac5b1e
feat: add findOneAndUpdate
andreazuccaspindox Jan 12, 2026
5545232
fix: payload findOneAndUpdate
andreazuccaspindox Jan 12, 2026
69b5332
chore: remove log initialize in test
andreazuccaspindox Jan 12, 2026
b376b30
fix: trigger auth
andreazuccaspindox Jan 12, 2026
2639e70
fix: user auto confirm
andreazuccaspindox Jan 12, 2026
da8990d
feat: add confirm user with custom function
andreazuccaspindox Jan 12, 2026
70c348a
chore: fix build
andreazuccaspindox Jan 12, 2026
dc78945
fix: args auth event trigger
andreazuccaspindox Jan 12, 2026
53ea8e7
fix: async aggregate
andreazuccaspindox Jan 13, 2026
d517f97
fix: trigger crash
andreazuccaspindox Jan 13, 2026
ef05b22
feat: add catch error functions
andreazuccaspindox Jan 13, 2026
bfae07c
fix: user id jwt
andreazuccaspindox Jan 13, 2026
3fe45d8
chore: fix tests
andreazuccaspindox Jan 13, 2026
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ logs
.env*
dist
.nx/cache
.nx/workspace-data
.nx/workspace-data
.tsc-e2e
17 changes: 17 additions & 0 deletions DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,3 +316,20 @@ This ensures isolation and allows access to useful resources during execution.
- `context.http`: Ability to make outgoing HTTP requests
- `context.values`: Read application-wide configuration variables

---

## 🧪 End-to-end rule validation

Le end-to-end risiedono in `tests/e2e` e vengono ora eseguite insieme agli unit test con `npm test`. Il root `jest.config.ts` contiene due progetti (`packages/flowerbase` + `tests`), perciò il comando fa partire:

- le suite `packages/flowerbase/src/**` (unit)
- i test `tests/e2e/**/*.test.ts` (E2E)

Per gli E2E viene caricato automaticamente `.env.e2e` (se presente) tramite `dotenv`, quindi il file può contenere `DB_CONNECTION_STRING` e altre variabili custom. Se preferisci non salvare le credenziali nel repo, basta esportare `DB_CONNECTION_STRING` prima di `npm test`:

```bash
export DB_CONNECTION_STRING="mongodb+srv://user:pass@cluster.mongodb.net/dbname"
npm test
```

In mancanza di un valore esplicito, il test fallirà perché il server remoto non sarà raggiungibile: assicurati che la stringa punti a un cluster che esegue le regole attese (per esempio `flowerbase-e2e`). Non serve più avviare Docker o Replica Set locali.
11 changes: 6 additions & 5 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { getJestProjectsAsync } from '@nx/jest';

export default async () => ({
projects: await getJestProjectsAsync(),
});
export default {
projects: [
'<rootDir>/packages/flowerbase/jest.config.ts',
'<rootDir>/tests/jest.e2e.config.ts'
]
};
Loading