feat: unit tests for ab-testing services + rate-limiting indexes (#1249–#1252) #1149
ci.yml
on: pull_request
No build artifacts in git
6s
validate
1m 4s
security-scan
40s
Annotations
11 errors and 9 warnings
|
security-scan
Process completed with exit code 1.
|
|
validate:
src/ab-testing/experiments/experiment.service.spec.ts#L125
Replace `⏎········service.updateTrafficAllocation('missing',·{}),⏎······` with `service.updateTrafficAllocation('missing',·{})`
|
|
validate:
src/ab-testing/experiments/experiment.service.spec.ts#L118
Replace `⏎········service.updateTrafficAllocation('exp-1',·{·v1:·0.3,·v2:·0.3·}),⏎······).rejects.toThrow('must·sum·to·1'` with `service.updateTrafficAllocation('exp-1',·{·v1:·0.3,·v2:·0.3·})).rejects.toThrow(⏎········'must·sum·to·1',⏎······`
|
|
validate:
src/ab-testing/experiments/experiment.service.spec.ts#L28
Replace `·as·IExperimentVariant)` with `)·as·IExperimentVariant`
|
|
validate:
src/ab-testing/experiments/experiment.service.spec.ts#L17
Replace `·as·Experiment)` with `)·as·Experiment`
|
|
validate:
src/ab-testing/automation/automated-decision.service.spec.ts#L174
Replace `⏎········makeExperiment({·autoAllocateTraffic:·false·}),⏎······` with `makeExperiment({·autoAllocateTraffic:·false·})`
|
|
validate:
src/ab-testing/automation/automated-decision.service.spec.ts#L150
Replace `⏎········makeExperiment({·status:·ExperimentStatus.PAUSED·}),⏎······` with `makeExperiment({·status:·ExperimentStatus.PAUSED·})`
|
|
validate:
src/ab-testing/automation/automated-decision.service.spec.ts#L114
Replace `⏎········makeExperiment({·status:·ExperimentStatus.PAUSED·}),⏎······` with `makeExperiment({·status:·ExperimentStatus.PAUSED·})`
|
|
validate:
src/ab-testing/automation/automated-decision.service.spec.ts#L90
Replace `(result.reason·as·string)` with `result.reason·as·string`
|
|
validate:
src/ab-testing/automation/automated-decision.service.spec.ts#L32
Replace `·as·IExperimentVariant)` with `)·as·IExperimentVariant`
|
|
validate:
src/ab-testing/automation/automated-decision.service.spec.ts#L21
Replace `·as·Experiment)` with `)·as·Experiment`
|
|
No build artifacts in git
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
security-scan
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-node@v4, pnpm/action-setup@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
validate
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-node@v4, pnpm/action-setup@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
validate:
src/payments/providers/payment-provider.service.ts#L61
'metadata' is assigned a value but never used. Allowed unused args must match /^_/u
|
|
validate:
src/payments/providers/payment-provider.service.ts#L41
'metadata' is assigned a value but never used. Allowed unused args must match /^_/u
|
|
validate:
src/migrations/1599999999999-BaselineSchema.ts#L2313
'queryRunner' is defined but never used. Allowed unused args must match /^_/u
|
|
validate:
src/email-marketing/automation/automation.service.ts#L25
'validateWebhookUrl' is defined but never used. Allowed unused vars must match /^_/u
|
|
validate:
src/auth/auth.controller.ts#L23
'Tenant' is defined but never used. Allowed unused vars must match /^_/u
|
|
validate:
src/achievements/achievements.seed.ts#L2
'Logger' is defined but never used. Allowed unused vars must match /^_/u
|