diff --git a/packages/cli-plugin-mocha/.npmignore b/packages/cli-plugin-mocha/.npmignore
deleted file mode 100644
index 672ed7652..000000000
--- a/packages/cli-plugin-mocha/.npmignore
+++ /dev/null
@@ -1,8 +0,0 @@
-src
-test
-coverage
-tsconfig.json
-tsconfig.*.json
-__mock__
-*.spec.js
-*.tsbuildinfo
diff --git a/packages/cli-plugin-mocha/package.json b/packages/cli-plugin-mocha/package.json
deleted file mode 100644
index 2f6388251..000000000
--- a/packages/cli-plugin-mocha/package.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "name": "@tsed/cli-plugin-mocha",
- "description": "Ts.ED CLI plugin. Add Mocha support",
- "version": "5.2.10",
- "type": "module",
- "main": "./lib/esm/index.js",
- "source": "./src/index.ts",
- "module": "./lib/esm/index.js",
- "typings": "./lib/types/index.d.ts",
- "exports": {
- ".": {
- "types": "./lib/types/index.d.ts",
- "import": "./lib/esm/index.js",
- "require": "./lib/cjs/index.js",
- "default": "./lib/esm/index.js"
- }
- },
- "scripts": {
- "build": "yarn build:ts",
- "build:ts": "tsc --build tsconfig.json",
- "test": "vitest run",
- "test:ci": "vitest run --coverage.thresholds.autoUpdate=true"
- },
- "devDependencies": {
- "@tsed/cli": "workspace:*",
- "@tsed/cli-core": "workspace:*",
- "@tsed/typescript": "workspace:*",
- "cross-env": "7.0.3",
- "typescript": "4.9.5",
- "vitest": "2.1.1"
- },
- "dependencies": {
- "tslib": "2.3.1"
- }
-}
diff --git a/packages/cli-plugin-mocha/readme.md b/packages/cli-plugin-mocha/readme.md
deleted file mode 100644
index db8d7ac0d..000000000
--- a/packages/cli-plugin-mocha/readme.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# @tsed/cli-plugin-mocha
-
-
-
-
-
-[![Build & Release](https://github.com/tsedio/tsed-cli/workflows/Build%20&%20Release/badge.svg?branch=master)](https://github.com/tsedio/tsed-cli/actions?query=workflow%3A%22Build+%26+Release%22)
-
-> Ts.ED CLI plugin. Add Mocha support
-
-## Features
-
-Please refer to the [documentation](https://cli.tsed.io/) for more details.
-
-## Installation
-
-```bash
-npm install -g @tsed/cli-plugin-mocha
-```
-
-## Contributors
-Please read [contributing guidelines here](https://tsed.io/CONTRIBUTING.html)
-
-
-
-
-## Backers
-
-Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/tsed#backer)]
-
-
diff --git a/packages/cli-plugin-mocha/scripts/templateDir.esm.js b/packages/cli-plugin-mocha/scripts/templateDir.esm.js
deleted file mode 100644
index 7fa172434..000000000
--- a/packages/cli-plugin-mocha/scripts/templateDir.esm.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import path from "node:path";
-import {fileURLToPath} from "node:url";
-
-import {getTemplateDirectory} from "@tsed/cli-core";
-
-export const TEMPLATE_DIR = getTemplateDirectory(path.dirname(fileURLToPath(import.meta.url)));
diff --git a/packages/cli-plugin-mocha/src/CliPluginMochaModule.ts b/packages/cli-plugin-mocha/src/CliPluginMochaModule.ts
deleted file mode 100644
index 47fd3e327..000000000
--- a/packages/cli-plugin-mocha/src/CliPluginMochaModule.ts
+++ /dev/null
@@ -1,49 +0,0 @@
-import {RuntimesModule} from "@tsed/cli";
-import {Module, OnAdd, ProjectPackageJson} from "@tsed/cli-core";
-import {Inject} from "@tsed/di";
-
-import {MochaGenerateHook} from "./hooks/MochaGenerateHook.js";
-import {MochaInitHook} from "./hooks/MochaInitHook.js";
-
-@Module({
- imports: [MochaInitHook, MochaGenerateHook]
-})
-export class CliPluginMochaModule {
- @Inject()
- runtimes: RuntimesModule;
-
- @Inject()
- packageJson: ProjectPackageJson;
-
- @OnAdd("@tsed/cli-plugin-mocha")
- install() {
- this.addScripts();
- this.addDevDependencies();
- }
-
- addScripts() {
- const runtime = this.runtimes.get();
-
- this.packageJson.addScripts({
- test: `${runtime.run("test:unit")} && ${runtime.run("test:coverage")} `,
- "test:unit": "cross-env NODE_ENV=test mocha",
- "test:coverage": "cross-env NODE_ENV=test nyc mocha"
- });
- }
-
- addDevDependencies() {
- this.packageJson.addDevDependencies({
- "@types/chai": "latest",
- "@types/chai-as-promised": "latest",
- "@types/mocha": "latest",
- "@types/sinon": "latest",
- "@types/sinon-chai": "latest",
- chai: "latest",
- "chai-as-promised": "latest",
- mocha: "latest",
- nyc: "latest",
- sinon: "latest",
- "sinon-chai": "latest"
- });
- }
-}
diff --git a/packages/cli-plugin-mocha/src/hooks/MochaGenerateHook.ts b/packages/cli-plugin-mocha/src/hooks/MochaGenerateHook.ts
deleted file mode 100644
index 28ce4c995..000000000
--- a/packages/cli-plugin-mocha/src/hooks/MochaGenerateHook.ts
+++ /dev/null
@@ -1,68 +0,0 @@
-import {GenerateCmdContext} from "@tsed/cli";
-import {Inject, Injectable, OnExec, SrcRendererService, Tasks} from "@tsed/cli-core";
-import normalizePath from "normalize-path";
-
-import {TEMPLATE_DIR} from "../utils/templateDir.js";
-
-@Injectable()
-export class MochaGenerateHook {
- @Inject()
- srcRenderService: SrcRendererService;
-
- @OnExec("generate")
- onExec(ctx: GenerateCmdContext): Tasks {
- const {symbolPath} = ctx;
- const {specTemplate, integrationTemplate, relativeSrcPath} = this.mapOptions(ctx);
-
- return [
- {
- title: `Generate ${ctx.type} spec file to '${symbolPath}.spec.ts'`,
- enabled() {
- return !(ctx.type === "server" || ctx.type.includes(":dataSource") || ctx.type.includes(":connection"));
- },
- task: () =>
- this.srcRenderService.render(
- specTemplate,
- {...ctx, relativeSrcPath},
- {
- output: `${symbolPath}.spec.ts`,
- templateDir: TEMPLATE_DIR
- }
- )
- },
- {
- title: `Generate ${ctx.type} integration file '${symbolPath}.integration.spec.ts'`,
- enabled() {
- return ["controller", "server"].includes(ctx.type);
- },
- task: () =>
- this.srcRenderService.render(
- integrationTemplate,
- {...ctx, relativeSrcPath},
- {
- output: `${symbolPath}.integration.spec.ts`,
- templateDir: TEMPLATE_DIR
- }
- )
- }
- ];
- }
-
- private mapOptions(options: GenerateCmdContext) {
- const type = [options.type, options.templateType].filter(Boolean).join(".");
-
- const specTemplate = this.srcRenderService.templateExists(`generate/${type}.spec.hbs`, {templateDir: TEMPLATE_DIR})
- ? `generate/${type}.spec.hbs`
- : "generate/generic.spec.hbs";
-
- const integrationTemplate = this.srcRenderService.templateExists(`generate/${type}.integration.hbs`, {templateDir: TEMPLATE_DIR})
- ? `generate/${type}.integration.hbs`
- : "generate/generic.integration.hbs";
-
- return {
- specTemplate,
- integrationTemplate,
- relativeSrcPath: normalizePath(this.srcRenderService.relativeFrom(`${options.symbolPath}.integration.spec.ts`))
- };
- }
-}
diff --git a/packages/cli-plugin-mocha/src/hooks/MochaInitHook.ts b/packages/cli-plugin-mocha/src/hooks/MochaInitHook.ts
deleted file mode 100644
index 1e1934c6d..000000000
--- a/packages/cli-plugin-mocha/src/hooks/MochaInitHook.ts
+++ /dev/null
@@ -1,50 +0,0 @@
-import {
- Inject,
- Injectable,
- OnExec,
- ProjectPackageJson,
- RootRendererService,
- ScriptsRendererService,
- SrcRendererService
-} from "@tsed/cli-core";
-import {join} from "path";
-
-import {TEMPLATE_DIR} from "../utils/templateDir.js";
-
-@Injectable()
-export class MochaInitHook {
- @Inject()
- protected packageJson: ProjectPackageJson;
-
- @Inject()
- protected srcRenderer: SrcRendererService;
-
- @Inject()
- protected rootRenderer: RootRendererService;
-
- @Inject()
- protected scriptsRenderer: ScriptsRendererService;
-
- @OnExec("init")
- onExec() {
- return [
- {
- title: "Generate files for mocha",
- task: (ctx: any) => {
- return this.rootRenderer.renderAll([".mocharc.js.hbs", ".nycrc.hbs"], ctx, {
- templateDir: `${TEMPLATE_DIR}/init`
- });
- }
- },
- {
- title: "Generate scripts files for mocha",
- task: (ctx: any) => {
- return this.scriptsRenderer.renderAll(["register.js.hbs"], ctx, {
- templateDir: `${TEMPLATE_DIR}/init`,
- rootDir: join(this.scriptsRenderer.rootDir, "mocha")
- });
- }
- }
- ];
- }
-}
diff --git a/packages/cli-plugin-mocha/src/index.ts b/packages/cli-plugin-mocha/src/index.ts
deleted file mode 100644
index d924931db..000000000
--- a/packages/cli-plugin-mocha/src/index.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-import {CliPluginMochaModule} from "./CliPluginMochaModule.js";
-
-export * from "./utils/templateDir.js";
-
-export default CliPluginMochaModule;
diff --git a/packages/cli-plugin-mocha/src/utils/templateDir.ts b/packages/cli-plugin-mocha/src/utils/templateDir.ts
deleted file mode 100644
index 2ccfa6ef6..000000000
--- a/packages/cli-plugin-mocha/src/utils/templateDir.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import {getTemplateDirectory} from "@tsed/cli-core";
-
-export const TEMPLATE_DIR = getTemplateDirectory(import.meta.dirname);
diff --git a/packages/cli-plugin-mocha/templates/generate/decorator.class.spec.hbs b/packages/cli-plugin-mocha/templates/generate/decorator.class.spec.hbs
deleted file mode 100644
index f7d546501..000000000
--- a/packages/cli-plugin-mocha/templates/generate/decorator.class.spec.hbs
+++ /dev/null
@@ -1,12 +0,0 @@
-import { expect } from "chai";
-import { {{symbolName}} } from "./{{symbolPathBasename}}.js";
-
-describe("{{symbolName}}", () => {
- it("should do something", () => {
- @{{symbolName}}()
- class Test {
- }
-
- expect({{symbolName}}).to.be.a("function")
- });
-});
diff --git a/packages/cli-plugin-mocha/templates/generate/decorator.endpoint.spec.hbs b/packages/cli-plugin-mocha/templates/generate/decorator.endpoint.spec.hbs
deleted file mode 100644
index 40ec80b58..000000000
--- a/packages/cli-plugin-mocha/templates/generate/decorator.endpoint.spec.hbs
+++ /dev/null
@@ -1,16 +0,0 @@
-import { expect } from "chai";
-import { Store } from "@tsed/core";
-import { {{symbolName}} } from "./{{symbolPathBasename}}.js";
-
-describe("{{symbolName}}", () => {
- it("should store options", () => {
- class Test {
- @{{symbolName}}({options: "options"})
- method() param: string){}
- }
-
- const store = Store.fromMethod(Test, "method");
-
- expect(store.get({{symbolName}})).to.deep.eq({options: "options"});
- });
-});
diff --git a/packages/cli-plugin-mocha/templates/generate/decorator.method.spec.hbs b/packages/cli-plugin-mocha/templates/generate/decorator.method.spec.hbs
deleted file mode 100644
index ff6530ccd..000000000
--- a/packages/cli-plugin-mocha/templates/generate/decorator.method.spec.hbs
+++ /dev/null
@@ -1,14 +0,0 @@
-import { expect } from "chai";
-import { {{symbolName}} } from "./{{symbolPathBasename}}.js";
-
-describe("{{symbolName}}", () => {
- it("should do something", () => {
- class Test {
- @{{symbolName}}()
- method(){}
- }
-
- expect({{symbolName}}).to.be.a("function")
- expect({{symbolName}}()).to.be.a("function")
- });
-});
diff --git a/packages/cli-plugin-mocha/templates/generate/decorator.param.spec.hbs b/packages/cli-plugin-mocha/templates/generate/decorator.param.spec.hbs
deleted file mode 100644
index 85120a5bb..000000000
--- a/packages/cli-plugin-mocha/templates/generate/decorator.param.spec.hbs
+++ /dev/null
@@ -1,15 +0,0 @@
-import { expect } from "chai";
-import { Store } from "@tsed/core";
-import { {{symbolName}} } from "./{{symbolPathBasename}}.js";
-
-describe("{{symbolName}}", () => {
- it("should store options", () => {
- class Test {
- method(@{{symbolName}}({options: "options"}) param: string){}
- }
-
- const store = Store.from(Test, "method", 0)
-
- expect(store.get({{symbolName}})).to.deep.eq({options: "options"});
- });
-});
diff --git a/packages/cli-plugin-mocha/templates/generate/decorator.parameter.spec.hbs b/packages/cli-plugin-mocha/templates/generate/decorator.parameter.spec.hbs
deleted file mode 100644
index 2d5d05bed..000000000
--- a/packages/cli-plugin-mocha/templates/generate/decorator.parameter.spec.hbs
+++ /dev/null
@@ -1,13 +0,0 @@
-import { expect } from "chai";
-import { {{symbolName}} } from "./{{symbolPathBasename}}.js";
-
-describe("{{symbolName}}", () => {
- it("should do something", () => {
- class Test {
- method(@{{symbolName}}() param: string){}
- }
-
- expect({{symbolName}}).to.be.a("function")
- expect({{symbolName}}()).to.be.a("function")
- });
-});
diff --git a/packages/cli-plugin-mocha/templates/generate/decorator.prop.spec.hbs b/packages/cli-plugin-mocha/templates/generate/decorator.prop.spec.hbs
deleted file mode 100644
index 35b0581b9..000000000
--- a/packages/cli-plugin-mocha/templates/generate/decorator.prop.spec.hbs
+++ /dev/null
@@ -1,16 +0,0 @@
-import { expect } from "chai";
-import { Store } from "@tsed/core";
-import { {{symbolName}} } from "./{{symbolPathBasename}}.js";
-
-describe("{{symbolName}}", () => {
- it("should store options", () => {
- class Test {
- @{{symbolName}}({options: "options"})
- property: string;
- }
-
- const store = Store.from(Test, "property");
-
- expect(store.get({{symbolName}})).to.deep.eq({options: "options"});
- });
-});
diff --git a/packages/cli-plugin-mocha/templates/generate/decorator.property.spec.hbs b/packages/cli-plugin-mocha/templates/generate/decorator.property.spec.hbs
deleted file mode 100644
index 97bda53e2..000000000
--- a/packages/cli-plugin-mocha/templates/generate/decorator.property.spec.hbs
+++ /dev/null
@@ -1,14 +0,0 @@
-import { expect } from "chai";
-import { {{symbolName}} } from "./{{symbolPathBasename}}.js";
-
-describe("{{symbolName}}", () => {
- it("should do something", () => {
- class Test {
- @{{symbolName}}()
- property: string;
- }
-
- expect({{symbolName}}).to.be.a("function")
- expect({{symbolName}}()).to.be.a("function")
- });
-});
diff --git a/packages/cli-plugin-mocha/templates/generate/generic.integration.hbs b/packages/cli-plugin-mocha/templates/generate/generic.integration.hbs
deleted file mode 100644
index d5330375f..000000000
--- a/packages/cli-plugin-mocha/templates/generate/generic.integration.hbs
+++ /dev/null
@@ -1,21 +0,0 @@
-import { expect } from "chai";
-import { PlatformTest } from "@tsed/common";
-import SuperTest from "supertest";
-import { {{symbolName}} } from "./{{symbolPathBasename}}.js";
-import { Server } from "{{relativeSrcPath}}/Server.js";
-
-describe("{{symbolName}}", () => {
- beforeEach(PlatformTest.bootstrap(Server, {
- mount: {
- "/": {{symbolName}}
- }
- }));
- afterEach(PlatformTest.reset);
-
- it("should call GET {{route}}", async () => {
- const request = SuperTest(PlatformTest.callback());
- const response = await request.get("{{route}}").expect(200);
-
- expect(response.text).to.eq("hello");
- });
-});
diff --git a/packages/cli-plugin-mocha/templates/generate/generic.spec.hbs b/packages/cli-plugin-mocha/templates/generate/generic.spec.hbs
deleted file mode 100644
index 02670764a..000000000
--- a/packages/cli-plugin-mocha/templates/generate/generic.spec.hbs
+++ /dev/null
@@ -1,15 +0,0 @@
-import { expect } from "chai";
-import { PlatformTest } from "@tsed/common";
-import { {{symbolName}} } from "./{{symbolPathBasename}}.js";
-
-describe("{{symbolName}}", () => {
- beforeEach(PlatformTest.create);
- afterEach(PlatformTest.reset);
-
- it("should do something", () => {
- const instance = PlatformTest.get<{{symbolName}}>({{symbolName}});
- // const instance = PlatformTest.invoke<{{symbolName}}>({{symbolName}}); // get fresh instance
-
- expect(instance).to.be.instanceof({{symbolName}});
- });
-});
diff --git a/packages/cli-plugin-mocha/templates/generate/model.spec.hbs b/packages/cli-plugin-mocha/templates/generate/model.spec.hbs
deleted file mode 100644
index 2dd3d9211..000000000
--- a/packages/cli-plugin-mocha/templates/generate/model.spec.hbs
+++ /dev/null
@@ -1,8 +0,0 @@
-import { expect } from "chai";
-import { {{symbolName}} } from "./{{symbolPathBasename}}.js";
-
-describe("{{symbolName}}", () => {
- it("should do something", () => {
- expect(new {{symbolName}}()).to.be.instanceof({{symbolName}});
- });
-});
diff --git a/packages/cli-plugin-mocha/templates/generate/server.integration.hbs b/packages/cli-plugin-mocha/templates/generate/server.integration.hbs
deleted file mode 100644
index a31db5cd1..000000000
--- a/packages/cli-plugin-mocha/templates/generate/server.integration.hbs
+++ /dev/null
@@ -1,21 +0,0 @@
-import { PlatformTest } from "@tsed/common";
-import SuperTest from "supertest";
-import {expect} from "chai";
-import { {{symbolName}} } from "./{{symbolPathBasename}}.js";
-
-describe("{{symbolName}}", () => {
- beforeEach(PlatformTest.bootstrap({{symbolName}}));
- afterEach(PlatformTest.reset);
-
- it("should call GET {{route}}", async () => {
- const request = SuperTest(PlatformTest.callback());
- const response = await request.get("{{route}}").expect(404);
-
- expect(response.body).to.deep.equal({
- errors: [],
- message: 'Resource "/rest" not found',
- name: "NOT_FOUND",
- status: 404,
- });
- });
-});
diff --git a/packages/cli-plugin-mocha/templates/init/.mocharc.js.hbs b/packages/cli-plugin-mocha/templates/init/.mocharc.js.hbs
deleted file mode 100644
index 5ed23cea0..000000000
--- a/packages/cli-plugin-mocha/templates/init/.mocharc.js.hbs
+++ /dev/null
@@ -1,11 +0,0 @@
-module.exports = {
- require: [
- "ts-node/register/transpile-only",
- "scripts/mocha/register"
- ],
- recursive: true,
- reporter: "dot",
- spec: [
- "{{srcDir}}/**/*.spec.ts"
- ]
-};
diff --git a/packages/cli-plugin-mocha/templates/init/.nycrc.hbs b/packages/cli-plugin-mocha/templates/init/.nycrc.hbs
deleted file mode 100644
index ca5296a4d..000000000
--- a/packages/cli-plugin-mocha/templates/init/.nycrc.hbs
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "include": [
- "{{srcDir}}/**/*.ts"
- ],
- "exclude": [
- "node_modules",
- "**/*.d.ts",
- "**/index.ts",
- "**/interfaces/**",
- "**/*.spec.ts"
- ],
- "reporter": [
- "text-summary",
- "html",
- "lcov"
- ],
- "extension": [
- ".ts"
- ],
- "check-coverage": true,
- "lines": 70,
- "statements": 70,
- "functions": 70,
- "branches": 70,
- "all": true
-}
diff --git a/packages/cli-plugin-mocha/templates/init/register.js.hbs b/packages/cli-plugin-mocha/templates/init/register.js.hbs
deleted file mode 100644
index d811dae63..000000000
--- a/packages/cli-plugin-mocha/templates/init/register.js.hbs
+++ /dev/null
@@ -1,12 +0,0 @@
-const Chai = require("chai");
-const ChaiAsPromised = require("chai-as-promised");
-const SinonChai = require("sinon-chai");
-
-Chai.should();
-Chai.use(SinonChai);
-Chai.use(ChaiAsPromised);
-
-process.on("unhandledRejection", (reason, p) => {
- console.log("Unhandled Rejection at: Promise", p, "reason:", reason);
- // application specific logging, throwing an error, or other logic here
-});
diff --git a/packages/cli-plugin-mocha/tsconfig.esm.json b/packages/cli-plugin-mocha/tsconfig.esm.json
deleted file mode 100644
index 45d441a7d..000000000
--- a/packages/cli-plugin-mocha/tsconfig.esm.json
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "extends": "@tsed/typescript/tsconfig.node.json",
- "compilerOptions": {
- "baseUrl": ".",
- "rootDir": "src",
- "outDir": "./lib/esm",
- "declarationDir": "./lib/types",
- "declaration": true,
- "composite": true,
- "noEmit": false
- },
- "include": ["src", "src/**/*.json"],
- "exclude": [
- "node_modules",
- "test",
- "lib",
- "benchmark",
- "coverage",
- "spec",
- "**/*.benchmark.ts",
- "**/*.spec.ts",
- "keys",
- "**/__mock__/**",
- "webpack.config.js"
- ]
-}
diff --git a/packages/cli-plugin-mocha/tsconfig.json b/packages/cli-plugin-mocha/tsconfig.json
deleted file mode 100644
index cf03b6beb..000000000
--- a/packages/cli-plugin-mocha/tsconfig.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "extends": "@tsed/typescript/tsconfig.node.json",
- "compilerOptions": {
- "baseUrl": ".",
- "noEmit": true
- },
- "include": [],
- "references": [
- {
- "path": "../cli/tsconfig.json"
- },
- {
- "path": "../cli-core/tsconfig.json"
- },
- {
- "path": "./tsconfig.esm.json"
- }
- ]
-}
diff --git a/packages/cli-plugin-mocha/tsconfig.spec.json b/packages/cli-plugin-mocha/tsconfig.spec.json
deleted file mode 100644
index 079424388..000000000
--- a/packages/cli-plugin-mocha/tsconfig.spec.json
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "extends": "@tsed/typescript/tsconfig.node.json",
- "compilerOptions": {
- "baseUrl": ".",
- "rootDir": "..",
- "module": "commonjs",
- "outDir": "./lib/cjs",
- "declaration": false,
- "composite": false,
- "noEmit": true,
- "paths": {
- "@tsed/openspec": ["../specs/openspec/src"],
- "@tsed/schema": ["../specs/schema/src"],
- "@tsed/exceptions": ["../specs/exceptions/src"],
- "@tsed/json-mapper": ["../specs/json-mapper/src"],
- "@tsed/platform-exceptions": ["../platform/platform-exceptions/src"],
- "@tsed/platform-middlewares": ["../platform/platform-middlewares/src"],
- "@tsed/platform-params": ["../platform/platform-params/src"],
- "@tsed/platform-log-middleware": ["../platform/platform-log-middleware/src"],
- "@tsed/platform-response-filter": ["../platform/platform-response-filter/src"],
- "@tsed/platform-router": ["../platform/platform-router/src"],
- "@tsed/platform-views": ["../platform/platform-views/src"],
- "@tsed/components-scan": ["../third-parties/components-scan/src"],
- "@tsed/common": ["../platform/common/src"],
- "@tsed/ajv": ["../specs/ajv/src"],
- "@tsed/platform-cache": ["../platform/platform-cache/src"],
- "@tsed/swagger": ["../specs/swagger/src"],
- "@tsed/platform-test-sdk": ["../platform/platform-test-sdk/src"],
- "@tsed/platform-express": ["../platform/platform-express/src"],
- "@tsed/platform-koa": ["../platform/platform-koa/src"]
- },
- "types": ["vite/client", "vitest/globals"]
- },
- "include": ["src/**/*.spec.ts", "test/**/*.spec.ts", "vitest.config.mts"],
- "exclude": ["node_modules", "test", "lib", "benchmark", "coverage"]
-}
diff --git a/packages/cli-plugin-mocha/vitest.config.mts b/packages/cli-plugin-mocha/vitest.config.mts
deleted file mode 100644
index d759e8179..000000000
--- a/packages/cli-plugin-mocha/vitest.config.mts
+++ /dev/null
@@ -1,21 +0,0 @@
-// @ts-ignore
-import {presets} from "@tsed/vitest/presets";
-import {defineConfig} from "vitest/config";
-
-export default defineConfig(
- {
- ...presets,
- test: {
- ...presets.test,
- coverage: {
- ...presets.test.coverage,
- thresholds: {
- statements: 0,
- branches: 0,
- functions: 0,
- lines: 0
- }
- }
- }
- }
-);
diff --git a/packages/cli/src/commands/init/config/FeaturesPrompt.ts b/packages/cli/src/commands/init/config/FeaturesPrompt.ts
index 7d28d12e7..7aae55bec 100644
--- a/packages/cli/src/commands/init/config/FeaturesPrompt.ts
+++ b/packages/cli/src/commands/init/config/FeaturesPrompt.ts
@@ -46,7 +46,6 @@ export enum FeatureType {
TESTING = "testing",
JEST = "jest",
VITEST = "vitest",
- MOCHA = "mocha",
LINTER = "linter",
ESLINT = "eslint",
LINT_STAGED = "lintstaged",
@@ -239,12 +238,6 @@ export const FeaturesMap: Record = {
"@tsed/cli-plugin-jest": "{{cliVersion}}"
}
},
- [FeatureType.MOCHA]: {
- name: "Mocha + Chai + Sinon",
- devDependencies: {
- "@tsed/cli-plugin-mocha": "{{cliVersion}}"
- }
- },
[FeatureType.ESLINT]: {
name: "EsLint",
checked: true,
@@ -372,7 +365,7 @@ export const FeaturesPrompt = (availableRuntimes: string[], availablePackageMana
type: "list",
name: "featuresTesting",
when: hasFeature(FeatureType.TESTING),
- choices: [FeatureType.VITEST, FeatureType.JEST, FeatureType.MOCHA]
+ choices: [FeatureType.VITEST, FeatureType.JEST]
},
{
message: "Choose linter tools framework",
diff --git a/packages/cli/src/commands/init/prompts/getFeaturesPrompt.spec.ts b/packages/cli/src/commands/init/prompts/getFeaturesPrompt.spec.ts
index 71bd6e50e..3f12491bc 100644
--- a/packages/cli/src/commands/init/prompts/getFeaturesPrompt.spec.ts
+++ b/packages/cli/src/commands/init/prompts/getFeaturesPrompt.spec.ts
@@ -269,13 +269,6 @@ describe("getFeaturesPrompt", () => {
"name": "Jest",
"value": "jest",
},
- {
- "devDependencies": {
- "@tsed/cli-plugin-mocha": "{{cliVersion}}",
- },
- "name": "Mocha + Chai + Sinon",
- "value": "mocha",
- },
],
"message": "Choose unit framework",
"name": "featuresTesting",