#11 ch: Setup CI workflow for testing, coverage reporting, building and linting #6
ci.yml
on: pull_request
build-lint-test-coverage
39s
Annotations
8 errors and 10 warnings
build-lint-test-coverage:
src/__test__/route.test.ts#L1
Could not find a declaration file for module 'supertest'. '/home/runner/work/knights-ecomm-be/knights-ecomm-be/node_modules/supertest/index.js' implicitly has an 'any' type.
|
build-lint-test-coverage:
src/__test__/route.test.ts#L2
Module '"../index"' has no exported member 'server'.
|
build-lint-test-coverage:
src/__test__/route.test.ts#L4
Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig.
|
build-lint-test-coverage:
src/__test__/route.test.ts#L5
Cannot find name 'afterAll'.
|
build-lint-test-coverage:
src/__test__/route.test.ts#L5
Parameter 'done' implicitly has an 'any' type.
|
build-lint-test-coverage:
src/__test__/route.test.ts#L9
Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig.
|
build-lint-test-coverage:
src/__test__/route.test.ts#L9
Parameter 'done' implicitly has an 'any' type.
|
build-lint-test-coverage
Process completed with exit code 2.
|
build-lint-test-coverage:
src/__test__/route.test.ts#L4
'describe' is not defined
|
build-lint-test-coverage:
src/__test__/route.test.ts#L5
'afterAll' is not defined
|
build-lint-test-coverage:
src/__test__/route.test.ts#L9
'it' is not defined
|
build-lint-test-coverage:
src/controllers/index.ts#L2
Missing return type on function
|
build-lint-test-coverage:
src/controllers/index.ts#L3
'console' is not defined
|
build-lint-test-coverage:
src/index.ts#L12
'process' is not defined
|
build-lint-test-coverage:
src/index.ts#L17
'res' is defined but never used. Allowed unused args must match /^_/u
|
build-lint-test-coverage:
src/index.ts#L24
'req' is defined but never used. Allowed unused args must match /^_/u
|
build-lint-test-coverage:
src/index.ts#L37
'console' is not defined
|
build-lint-test-coverage:
src/middlewares/errorHandler.ts#L4
Missing accessibility modifier on class property statusCode
|