feat: egress tracker middleware #242
Annotations
9 errors and 1 warning
Test:
test/unit/middlewares/rate-limiter.spec.js#L125
Type '{ DEBUG: string; ACCOUNTING_SERVICE_URL: string; RATE_LIMITER: { limit: sinon.SinonStub<[options: RateLimitOptions], Promise<RateLimitOutcome>>; }; FF_RATE_LIMITER_ENABLED: string; AUTH_TOKEN_METADATA: { ...; }; }' does not satisfy the expected type 'Environment'.
|
Test:
test/unit/middlewares/rate-limiter.spec.js#L172
Argument of type '{ DEBUG: string; ACCOUNTING_SERVICE_URL: string; RATE_LIMITER: { limit: sinon.SinonStub<[options: RateLimitOptions], Promise<RateLimitOutcome>>; }; FF_RATE_LIMITER_ENABLED: string; AUTH_TOKEN_METADATA: { ...; }; }' is not assignable to parameter of type 'Environment'.
|
Test:
test/unit/middlewares/rate-limiter.spec.js#L187
Argument of type '{ DEBUG: string; ACCOUNTING_SERVICE_URL: string; RATE_LIMITER: { limit: sinon.SinonStub<[options: RateLimitOptions], Promise<RateLimitOutcome>>; }; FF_RATE_LIMITER_ENABLED: string; AUTH_TOKEN_METADATA: { ...; }; }' is not assignable to parameter of type 'Environment'.
|
Test:
test/unit/middlewares/rate-limiter.spec.js#L209
Argument of type '{ DEBUG: string; ACCOUNTING_SERVICE_URL: string; RATE_LIMITER: { limit: sinon.SinonStub<[options: RateLimitOptions], Promise<RateLimitOutcome>>; }; FF_RATE_LIMITER_ENABLED: string; AUTH_TOKEN_METADATA: { ...; }; }' is not assignable to parameter of type 'Environment'.
|
Test:
test/unit/middlewares/rate-limiter.spec.js#L226
Argument of type '{ DEBUG: string; ACCOUNTING_SERVICE_URL: string; RATE_LIMITER: { limit: sinon.SinonStub<[options: RateLimitOptions], Promise<RateLimitOutcome>>; }; FF_RATE_LIMITER_ENABLED: string; AUTH_TOKEN_METADATA: { ...; }; }' is not assignable to parameter of type 'Environment'.
|
Test:
test/unit/middlewares/rate-limiter.spec.js#L251
Argument of type '{ DEBUG: string; ACCOUNTING_SERVICE_URL: string; RATE_LIMITER: { limit: sinon.SinonStub<[options: RateLimitOptions], Promise<RateLimitOutcome>>; }; FF_RATE_LIMITER_ENABLED: string; AUTH_TOKEN_METADATA: { ...; }; }' is not assignable to parameter of type 'Environment'.
|
Test:
test/unit/middlewares/rate-limiter.spec.js#L270
Argument of type '{ DEBUG: string; ACCOUNTING_SERVICE_URL: string; RATE_LIMITER: { limit: sinon.SinonStub<[options: RateLimitOptions], Promise<RateLimitOutcome>>; }; FF_RATE_LIMITER_ENABLED: string; AUTH_TOKEN_METADATA: { ...; }; }' is not assignable to parameter of type 'Environment'.
|
Test:
test/unit/middlewares/rate-limiter.spec.js#L292
Argument of type '{ DEBUG: string; ACCOUNTING_SERVICE_URL: string; RATE_LIMITER: { limit: sinon.SinonStub<[options: RateLimitOptions], Promise<RateLimitOutcome>>; }; FF_RATE_LIMITER_ENABLED: string; AUTH_TOKEN_METADATA: { ...; }; }' is not assignable to parameter of type 'Environment'.
|
Test
Process completed with exit code 1.
|
Test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|