load test

This commit is contained in:
2026-06-06 12:49:19 +03:30
parent 4d2b4ce6da
commit d4e76a2ab4
3 changed files with 209 additions and 0 deletions
+4
View File
@@ -23,6 +23,10 @@
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json",
"load:hot": "k6 run -e BASE_URL=https://dmenu-api.danakcorp.com load-tests/hot-endpoints.js",
"load:hot:burst": "k6 run -e BASE_URL=https://dmenu-api.danakcorp.com -e TEST_PROFILE=concurrent_burst load-tests/hot-endpoints.js",
"load:hot:herd": "k6 run -e BASE_URL=https://dmenu-api.danakcorp.com -e TEST_PROFILE=thundering_herd load-tests/hot-endpoints.js",
"load:hot:smoke": "k6 run -e BASE_URL=https://dmenu-api.danakcorp.com -e TEST_PROFILE=smoke load-tests/hot-endpoints.js",
"migration:create": "npx mikro-orm migration:create --config ./src/config/mikro-orm.config.dev.ts",
"migration:up": "npx mikro-orm migration:up --config ./src/config/mikro-orm.config.dev.ts",
"migration:down": "npx mikro-orm migration:down --config ./src/config/mikro-orm.config.dev.ts",