refactor: Type check and restructure tests #234
Annotations
10 errors and 1 warning
Test:
test/integration/rate-limit.spec.js#L1
Could not find a declaration file for module 'chai'. '/home/runner/work/freeway/freeway/node_modules/chai/chai.js' implicitly has an 'any' type.
|
Test:
test/integration/rate-limit.spec.js#L2
Could not find a declaration file for module 'mocha'. '/home/runner/work/freeway/freeway/node_modules/mocha/index.js' implicitly has an 'any' type.
|
Test:
test/integration/rate-limit.spec.js#L3
Could not find a declaration file for module 'node-fetch'. '/home/runner/work/freeway/freeway/node_modules/node-fetch/lib/index.js' implicitly has an 'any' type.
|
Test:
test/miniflare/freeway.spec.js#L166
Variable 'blocks' implicitly has type 'any[]' in some locations where its type cannot be determined.
|
Test:
test/miniflare/freeway.spec.js#L171
Variable 'blocks' implicitly has an 'any[]' type.
|
Test:
test/miniflare/freeway.spec.js#L224
Variable 'blocks' implicitly has type 'any[]' in some locations where its type cannot be determined.
|
Test:
test/miniflare/freeway.spec.js#L229
Variable 'blocks' implicitly has an 'any[]' type.
|
Test:
test/miniflare/freeway.spec.js#L231
Variable 'blocks' implicitly has an 'any[]' type.
|
Test:
test/unit/middlewares/rate-limiter.spec.js#L2
Could not find a declaration file for module 'mocha'. '/home/runner/work/freeway/freeway/node_modules/mocha/index.js' implicitly has an 'any' type.
|
Test:
test/unit/middlewares/rate-limiter.spec.js#L3
Could not find a declaration file for module 'chai'. '/home/runner/work/freeway/freeway/node_modules/chai/chai.js' implicitly has an 'any' type.
|
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/
|