feat(cli): update template to use new Functional API when it's possible #1698
build.yml
on: push
Matrix: build
Matrix: lint
Matrix: test
Matrix: deploy-packages
Annotations
5 errors
test/init/init.integration.spec.ts > Init OIDC Provider project > should generate a project with oidc:
packages/cli-plugin-oidc-provider/test/init/init.integration.spec.ts#L42
Error: Snapshot `Init OIDC Provider project > should generate a project with oidc 2` mismatched
- Expected
+ Received
@@ -1,8 +1,8 @@
"import {join} from "path";
- import {Configuration, Inject} from "@tsed/di";
+ import {Configuration} from "@tsed/di";
- import {PlatformApplication} from "@tsed/platform-http";
+ import {application} from "@tsed/platform-http";
import "@tsed/platform-log-request"; // remove this import if you don't want log request
import "@tsed/platform-express"; // /!\ keep this import
import "@tsed/ajv";
import "@tsed/oidc-provider";
import {config} from "./config/index.js";
@@ -44,12 +44,8 @@
exclude: [
"**/*.spec.ts"
]
})
export class Server {
- @Inject()
- protected app: PlatformApplication;
-
- @configuration()
- protected settings: Configuration;
+ protected app = application();
}
"
❯ test/init/init.integration.spec.ts:42:21
|
test/init/init.integration.spec.ts > Init OIDC Provider project > should generate a project with oidc and swagger:
packages/cli-plugin-oidc-provider/test/init/init.integration.spec.ts#L74
Error: Snapshot `Init OIDC Provider project > should generate a project with oidc and swagger 2` mismatched
- Expected
+ Received
@@ -1,8 +1,8 @@
"import {join} from "path";
- import {Configuration, Inject} from "@tsed/di";
+ import {Configuration} from "@tsed/di";
- import {PlatformApplication} from "@tsed/platform-http";
+ import {application} from "@tsed/platform-http";
import "@tsed/platform-log-request"; // remove this import if you don't want log request
import "@tsed/platform-express"; // /!\ keep this import
import "@tsed/ajv";
import "@tsed/swagger";
import "@tsed/oidc-provider";
@@ -52,12 +52,8 @@
exclude: [
"**/*.spec.ts"
]
})
export class Server {
- @Inject()
- protected app: PlatformApplication;
-
- @configuration()
- protected settings: Configuration;
+ protected app = application();
}
"
❯ test/init/init.integration.spec.ts:74:21
|
test/init/init.integration.spec.ts > Init TypeGraphQL project > should generate a project with typegraphql:
packages/cli-plugin-typegraphql/test/init/init.integration.spec.ts#L76
Error: Snapshot `Init TypeGraphQL project > should generate a project with typegraphql 2` mismatched
- Expected
+ Received
@@ -1,8 +1,8 @@
"import {join} from "path";
- import {Configuration, Inject} from "@tsed/di";
+ import {Configuration} from "@tsed/di";
- import {PlatformApplication} from "@tsed/platform-http";
+ import {application} from "@tsed/platform-http";
import "@tsed/platform-log-request"; // remove this import if you don't want log request
import "@tsed/platform-express"; // /!\ keep this import
import "@tsed/ajv";
import "@tsed/typegraphql";
import "./datasources/index.js";
@@ -41,12 +41,8 @@
exclude: [
"**/*.spec.ts"
]
})
export class Server {
- @Inject()
- protected app: PlatformApplication;
-
- @configuration()
- protected settings: Configuration;
+ protected app = application();
}
"
❯ test/init/init.integration.spec.ts:76:21
|
test/integrations/init/init.integration.spec.ts > TypeORM: Init cmd > should generate a project with the right options:
packages/cli-plugin-typeorm/test/integrations/init/init.integration.spec.ts#L85
Error: Snapshot `TypeORM: Init cmd > should generate a project with the right options 2` mismatched
- Expected
+ Received
@@ -1,8 +1,8 @@
"import {join} from "path";
- import {Configuration, Inject} from "@tsed/di";
+ import {Configuration} from "@tsed/di";
- import {PlatformApplication} from "@tsed/platform-http";
+ import {application} from "@tsed/platform-http";
import "@tsed/platform-log-request"; // remove this import if you don't want log request
import "@tsed/platform-express"; // /!\ keep this import
import "@tsed/ajv";
import {config} from "./config/index.js";
import * as rest from "./controllers/rest/index.js";
@@ -38,12 +38,8 @@
exclude: [
"**/*.spec.ts"
]
})
export class Server {
- @Inject()
- protected app: PlatformApplication;
-
- @configuration()
- protected settings: Configuration;
+ protected app = application();
}
"
❯ test/integrations/init/init.integration.spec.ts:85:21
|
test (ubuntu-latest, 20.x)
Process completed with exit code 1.
|