Skip to content

Commit

Permalink
Revert "Feat/codecov"
Browse files Browse the repository at this point in the history
  • Loading branch information
WoH authored Jan 23, 2024
1 parent 579dc5e commit df7d14f
Show file tree
Hide file tree
Showing 92 changed files with 101 additions and 937 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/runTestsOnPush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,4 @@ jobs:
run: yarn run lint

- name: Test
run: yarn run test:coverage

- name: Coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
files: ./coverage/lcov.info
move_coverage_to_trash: true
run: yarn run test
7 changes: 2 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
dist
distForNoAdditional
node_modules
**/custom-route-generator/routes/*
.idea/
.nyc_output/
coverage/

routes.ts
customRoutes.ts
**/custom-route-generator/routes/*
.idea/
*.swp
yarn-error.log
tsconfig.tsbuildinfo
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"prepare": "yarn build",
"preversion": "yarn test",
"test": "lerna run test --stream",
"test:coverage": "lerna run test:coverage --stream",
"lint": "eslint . --ext .ts",
"lint:fix": "yarn run eslint --ext .ts --fix",
"watch": "lerna run watch",
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ export * from './decorators/route';
export * from './decorators/security';
export * from './decorators/extension';
export * from './decorators/middlewares';
export * from './decorators/response';
export * from './interfaces/controller';
export * from './interfaces/response';
export * from './interfaces/iocModule';
export * from './interfaces/file';
export * from './decorators/response';
export * from './metadataGeneration/tsoa';
export * from './routeGeneration/templateHelpers';
export * from './routeGeneration/tsoa-route';
Expand Down
18 changes: 0 additions & 18 deletions tests/.nycrc.json

This file was deleted.

6 changes: 1 addition & 5 deletions tests/esm/fixtures/controllers/securityController.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import { Controller } from '@tsoa/runtime/interfaces/controller';
import { Get } from '@tsoa/runtime/decorators/methods';
import { Route } from '@tsoa/runtime/decorators/route';
import { Security } from '@tsoa/runtime/decorators/security';

import { Controller, Get, Route, Security } from '@tsoa/runtime';
import type { TestModel } from '../testModel.js';

@Security('tsoa_auth')
Expand Down
5 changes: 1 addition & 4 deletions tests/esm/fixtures/express/rootController.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import { Controller } from '@tsoa/runtime/interfaces/controller';
import { Get } from '@tsoa/runtime/decorators/methods';
import { Route } from '@tsoa/runtime/decorators/route';

import { Controller, Get, Route } from '@tsoa/runtime';
import type { TestModel } from '../testModel.js';

@Route()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import { Get } from '@tsoa/runtime/decorators/methods';
import { Route } from '@tsoa/runtime/decorators/route';
import { Controller } from '@tsoa/runtime/interfaces/controller';
import { Response } from '@tsoa/runtime/decorators/response';

import { Controller, Get, Route, Response } from '@tsoa/runtime';

/**
* Common response header's description
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import { Get } from '@tsoa/runtime/decorators/methods';
import { Route } from '@tsoa/runtime/decorators/route';
import { Controller } from '@tsoa/runtime/interfaces/controller';
import { Response } from '@tsoa/runtime/decorators/response';

import { Controller, Get, Route, Response } from '@tsoa/runtime';

@Route('CommonResponseHeaderObject')
@Response<
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import { Get } from '@tsoa/runtime/decorators/methods';
import { Route, Hidden } from '@tsoa/runtime/decorators/route';
import { Controller } from '@tsoa/runtime/interfaces/controller';
import { Response } from '@tsoa/runtime/decorators/response';

import { Controller, Get, Route, Response, Hidden } from '@tsoa/runtime';

interface ToHideModel {
something: string;
Expand Down
6 changes: 1 addition & 5 deletions tests/fixtures/controllers/controllerWithCommonResponses.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import { Get, Post } from '@tsoa/runtime/decorators/methods';
import { Route } from '@tsoa/runtime/decorators/route';
import { Controller } from '@tsoa/runtime/interfaces/controller';
import { Response } from '@tsoa/runtime/decorators/response';

import { Controller, Get, Response, Post, Route } from '@tsoa/runtime';
import { ModelService } from '../services/modelService';
import { ErrorResponseModel, TestModel } from '../testModel';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import { Get } from '@tsoa/runtime/decorators/methods';
import { Route } from '@tsoa/runtime/decorators/route';
import { Controller } from '@tsoa/runtime/interfaces/controller';
import { SuccessResponse } from '@tsoa/runtime/decorators/response';

import { Controller, Get, Route, SuccessResponse } from '@tsoa/runtime';
import { TestModel } from '../testModel';
import { ModelService } from 'fixtures/services/modelService';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import { Get } from '@tsoa/runtime/decorators/methods';
import { Route } from '@tsoa/runtime/decorators/route';
import { Controller } from '@tsoa/runtime/interfaces/controller';

import { Controller, Get, Route } from '@tsoa/runtime';
import { ModelService } from '../services/modelService';
import { TestModel as TestModelRenamed } from '../testModel';

Expand Down
5 changes: 1 addition & 4 deletions tests/fixtures/controllers/deleteController.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import { Query } from '@tsoa/runtime/decorators/parameter';
import { Delete } from '@tsoa/runtime/decorators/methods';
import { Route } from '@tsoa/runtime/decorators/route';

import { Delete, Query, Route } from '@tsoa/runtime';
import { ModelService } from '../services/modelService';
import { TestModel } from '../testModel';

Expand Down
6 changes: 1 addition & 5 deletions tests/fixtures/controllers/deprecatedController.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import { Deprecated } from '@tsoa/runtime/decorators/deprecated';
import { Get } from '@tsoa/runtime/decorators/methods';
import { Route } from '@tsoa/runtime/decorators/route';
import { Controller } from '@tsoa/runtime/interfaces/controller';

import { Controller, Get, Route, Deprecated } from '@tsoa/runtime';
import { TestModel } from '../../fixtures/testModel';
import { ModelService } from '../services/modelService';

Expand Down
4 changes: 1 addition & 3 deletions tests/fixtures/controllers/duplicateMethodsController.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { Get } from '@tsoa/runtime/decorators/methods';
import { Route } from '@tsoa/runtime/decorators/route';

import { Route, Get } from '@tsoa/runtime';
import { ModelService } from '../services/modelService';

@Route('GetTest')
Expand Down
5 changes: 1 addition & 4 deletions tests/fixtures/controllers/duplicatePathParamController.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import { Path } from '@tsoa/runtime/decorators/parameter';
import { Get, Post, Delete, Head } from '@tsoa/runtime/decorators/methods';
import { Route } from '@tsoa/runtime/decorators/route';

import { Route, Get, Post, Path, Delete, Head } from '@tsoa/runtime';

@Route('GetTest')
export class DuplicatePathParamTestController {
Expand Down
8 changes: 1 addition & 7 deletions tests/fixtures/controllers/exampleController.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import { Example } from '@tsoa/runtime/decorators/example';
import { Path, Query, Header, Body, BodyProp } from '@tsoa/runtime/decorators/parameter';
import { Get, Post } from '@tsoa/runtime/decorators/methods';
import { Route } from '@tsoa/runtime/decorators/route';
import { TsoaResponse } from '@tsoa/runtime/interfaces/response';
import { Res, Produces } from '@tsoa/runtime/decorators/response';

import { Route, Get, Path, Query, Header, Post, Body, BodyProp, Example, Res, TsoaResponse, Produces } from '@tsoa/runtime';
import { exampleResponse } from './consts';

/**
Expand Down
11 changes: 1 addition & 10 deletions tests/fixtures/controllers/getController.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
///<reference path="../tsoaTestModule.d.ts" />
import { Readable } from 'stream';
import { Example } from '@tsoa/runtime/decorators/example';
import { Query, Request, Queries } from '@tsoa/runtime/decorators/parameter';
import { Get } from '@tsoa/runtime/decorators/methods';
import { Tags } from '@tsoa/runtime/decorators/tags';
import { OperationId } from '@tsoa/runtime/decorators/operationid';
import { Route } from '@tsoa/runtime/decorators/route';
import { Controller } from '@tsoa/runtime/interfaces/controller';
import { TsoaResponse } from '@tsoa/runtime/interfaces/response';
import { Response, SuccessResponse, Res } from '@tsoa/runtime/decorators/response';

import { Controller, Example, Get, OperationId, Query, Request, Response, Route, SuccessResponse, Tags, Res, TsoaResponse, Queries } from '@tsoa/runtime';
import '../duplicateTestModel';
import {
GenericModel,
Expand Down
5 changes: 1 addition & 4 deletions tests/fixtures/controllers/headController.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import { Query } from '@tsoa/runtime/decorators/parameter';
import { Head } from '@tsoa/runtime/decorators/methods';
import { Route } from '@tsoa/runtime/decorators/route';

import { Head, Query, Route } from '@tsoa/runtime';

@Route('HeadTest')
export class HeadTestController {
Expand Down
5 changes: 1 addition & 4 deletions tests/fixtures/controllers/hiddenController.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import { Get, Post } from '@tsoa/runtime/decorators/methods';
import { Hidden, Route } from '@tsoa/runtime/decorators/route';
import { Controller } from '@tsoa/runtime/interfaces/controller';

import { Controller, Get, Hidden, Post, Route } from '@tsoa/runtime';
import { ModelService } from '../services/modelService';
import { TestModel } from '../testModel';

Expand Down
6 changes: 1 addition & 5 deletions tests/fixtures/controllers/hiddenMethodController.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import { Query } from '@tsoa/runtime/decorators/parameter';
import { Get } from '@tsoa/runtime/decorators/methods';
import { Hidden, Route } from '@tsoa/runtime/decorators/route';
import { Controller } from '@tsoa/runtime/interfaces/controller';

import { Controller, Get, Hidden, Route, Query } from '@tsoa/runtime';
import { TestModel } from '../../fixtures/testModel';
import { ModelService } from '../services/modelService';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import { Get } from '@tsoa/runtime/decorators/methods';
import { Route } from '@tsoa/runtime/decorators/route';
import { Controller } from '@tsoa/runtime/interfaces/controller';
import { Response } from '@tsoa/runtime/decorators/response';

import { Controller, Get, Response, Route } from '@tsoa/runtime';

@Route('IncorrectResponseHeader')
@Response<null, any>(200)
Expand Down
6 changes: 1 addition & 5 deletions tests/fixtures/controllers/injectParameterController.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import { Query, Inject } from '@tsoa/runtime/decorators/parameter';
import { Get } from '@tsoa/runtime/decorators/methods';
import { Route } from '@tsoa/runtime/decorators/route';
import { Controller } from '@tsoa/runtime/interfaces/controller';

import { Controller, Get, Query, Inject, Route } from '@tsoa/runtime';
import { TestModel } from '../../fixtures/testModel';
import { ModelService } from '../services/modelService';

Expand Down
6 changes: 1 addition & 5 deletions tests/fixtures/controllers/invalidExampleController.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import { Body } from '@tsoa/runtime/decorators/parameter';
import { Post } from '@tsoa/runtime/decorators/methods';
import { Route } from '@tsoa/runtime/decorators/route';
import { Controller } from '@tsoa/runtime/interfaces/controller';

import { Route, Controller, Post, Body } from '@tsoa/runtime';

@Route('ExampleTest')
export class InvalidExampleController extends Controller {
Expand Down
5 changes: 1 addition & 4 deletions tests/fixtures/controllers/invalidExtensionController.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import { Get } from '@tsoa/runtime/decorators/methods';
import { Route } from '@tsoa/runtime/decorators/route';
import { Extension } from '@tsoa/runtime/decorators/extension';

import { Get, Route, Extension } from '@tsoa/runtime';
import { ModelService } from '../services/modelService';
import { TestModel } from '../testModel';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { Get } from '@tsoa/runtime/decorators/methods';
import { Route } from '@tsoa/runtime/decorators/route';

import { Get, Route } from '@tsoa/runtime';

interface InvalidExtension {
/**
Expand Down
5 changes: 1 addition & 4 deletions tests/fixtures/controllers/invalidGetController.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import { Query } from '@tsoa/runtime/decorators/parameter';
import { Get } from '@tsoa/runtime/decorators/methods';
import { Route } from '@tsoa/runtime/decorators/route';

import { Get, Query, Route } from '@tsoa/runtime';
import { ModelService } from '../services/modelService';
import { TestModel } from '../testModel';

Expand Down
6 changes: 1 addition & 5 deletions tests/fixtures/controllers/invalidHeaderController.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import { Get } from '@tsoa/runtime/decorators/methods';
import { Route } from '@tsoa/runtime/decorators/route';
import { TsoaResponse } from '@tsoa/runtime/interfaces/response';
import { Res } from '@tsoa/runtime/decorators/response';

import { Get, Res, Route, TsoaResponse } from '@tsoa/runtime';

@Route('/')
export class InvalidHeaderTestController {
Expand Down
6 changes: 1 addition & 5 deletions tests/fixtures/controllers/invalidNestedQueriesController.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import { Queries } from '@tsoa/runtime/decorators/parameter';
import { Get } from '@tsoa/runtime/decorators/methods';
import { Route } from '@tsoa/runtime/decorators/route';
import { Controller } from '@tsoa/runtime/interfaces/controller';

import { Controller, Get, Route, Queries } from '@tsoa/runtime';
import { ModelService } from '../services/modelService';

@Route('Controller')
Expand Down
5 changes: 1 addition & 4 deletions tests/fixtures/controllers/invalidPostController.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import { Body } from '@tsoa/runtime/decorators/parameter';
import { Post } from '@tsoa/runtime/decorators/methods';
import { Route } from '@tsoa/runtime/decorators/route';

import { Body, Post, Route } from '@tsoa/runtime';
import { ModelService } from '../services/modelService';
import { TestModel } from '../testModel';

Expand Down
5 changes: 1 addition & 4 deletions tests/fixtures/controllers/invalidQueriesController.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import { Queries } from '@tsoa/runtime/decorators/parameter';
import { Get } from '@tsoa/runtime/decorators/methods';
import { Route } from '@tsoa/runtime/decorators/route';

import { Get, Queries, Route } from '@tsoa/runtime';
import { ModelService } from '../services/modelService';
import { TestModel } from '../testModel';

Expand Down
5 changes: 1 addition & 4 deletions tests/fixtures/controllers/invalidQueryController.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import { Queries, Query } from '@tsoa/runtime/decorators/parameter';
import { Get } from '@tsoa/runtime/decorators/methods';
import { Route } from '@tsoa/runtime/decorators/route';

import { Get, Queries, Query, Route } from '@tsoa/runtime';
import { ModelService } from '../services/modelService';
import { TestModel } from '../testModel';

Expand Down
6 changes: 1 addition & 5 deletions tests/fixtures/controllers/invalidTagController.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import { Query } from '@tsoa/runtime/decorators/parameter';
import { Get } from '@tsoa/runtime/decorators/methods';
import { Route } from '@tsoa/runtime/decorators/route';
import { Controller } from '@tsoa/runtime/interfaces/controller';

import { Route, Get, Query, Controller } from '@tsoa/runtime';

@Route('TagTest')
export class InvalidTagController extends Controller {
Expand Down
8 changes: 1 addition & 7 deletions tests/fixtures/controllers/mediaTypeController.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import { Body, Consumes, Path } from '@tsoa/runtime/decorators/parameter';
import { Get, Post } from '@tsoa/runtime/decorators/methods';
import { Route } from '@tsoa/runtime/decorators/route';
import { Controller } from '@tsoa/runtime/interfaces/controller';
import { TsoaResponse } from '@tsoa/runtime/interfaces/response';
import { Produces, Response, Res, SuccessResponse } from '@tsoa/runtime/decorators/response';

import { Body, Consumes, Controller, Get, Produces, Path, Post, Response, Res, Route, SuccessResponse, TsoaResponse } from '@tsoa/runtime';
import { ErrorResponseModel, UserResponseModel } from '../../fixtures/testModel';

type UserRequestModel = Pick<UserResponseModel, 'name'>;
Expand Down
10 changes: 1 addition & 9 deletions tests/fixtures/controllers/methodController.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
import { Example } from '@tsoa/runtime/decorators/example';
import { Options, Delete, Get, Patch, Post, Put } from '@tsoa/runtime/decorators/methods';
import { Tags } from '@tsoa/runtime/decorators/tags';
import { Route } from '@tsoa/runtime/decorators/route';
import { Security } from '@tsoa/runtime/decorators/security';
import { Extension } from '@tsoa/runtime/decorators/extension';
import { Controller } from '@tsoa/runtime/interfaces/controller';
import { Response, SuccessResponse } from '@tsoa/runtime/decorators/response';

import { Controller, Extension, Options, Delete, Get, Patch, Post, Put, Response, Route, Security, SuccessResponse, Tags, Example } from '@tsoa/runtime';
import { ModelService } from '../services/modelService';
import { ErrorResponseModel, TestModel, TestModel as RenamedModel } from '../testModel';

Expand Down
4 changes: 1 addition & 3 deletions tests/fixtures/controllers/middlewaresExpressController.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { Route } from '@tsoa/runtime/decorators/route';
import { Get } from '@tsoa/runtime/decorators/methods';
import { Middlewares as GenericMiddlewares } from '@tsoa/runtime';
import { Route, Get, Middlewares as GenericMiddlewares } from '@tsoa/runtime';

import type { Request as ExpressRequest, Response as ExpressResponse, NextFunction as ExpressNextFunction, RequestHandler } from 'express';

Expand Down
4 changes: 1 addition & 3 deletions tests/fixtures/controllers/middlewaresHapiController.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { Route } from '@tsoa/runtime/decorators/route';
import { Get } from '@tsoa/runtime/decorators/methods';
import { Middlewares as GenericMiddlewares } from '@tsoa/runtime';
import { Route, Get, Middlewares as GenericMiddlewares } from '@tsoa/runtime';

import type { Request, ResponseToolkit, RouteOptionsPreAllOptions } from '@hapi/hapi';

Expand Down
Loading

0 comments on commit df7d14f

Please sign in to comment.