@tsed/cli-testing 7.0.0-alpha.9 → 7.0.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,8 +39,7 @@ export class CliPlatformTest extends DITest {
39
39
  })
40
40
  .addProvider(CliExeca, {
41
41
  useClass: FakeCliExeca
42
- })
43
- .addProvider(CliCore);
42
+ });
44
43
  await injector().load();
45
44
  await $asyncEmit("$onReady");
46
45
  await $asyncEmit("$loadPackageJson");
@@ -65,16 +64,13 @@ export class CliPlatformTest extends DITest {
65
64
  ...options
66
65
  });
67
66
  }
68
- static async create(options = {}, rootModule = CliCore) {
67
+ static async create(options = {}) {
69
68
  options = resolveConfiguration({
70
69
  name: "tsed",
71
70
  ...options,
72
71
  disableReadUpPkg: true
73
72
  });
74
73
  CliPlatformTest.createInjector(options);
75
- injector().addProvider(CliCore, {
76
- useClass: rootModule
77
- });
78
74
  await injector().load();
79
75
  }
80
76
  /**
@@ -11,6 +11,9 @@ export class FakeCliHttpClient extends CliHttpClient {
11
11
  });
12
12
  }
13
13
  if (!FakeCliHttpClient.entries.has(key)) {
14
+ if (key.includes("https://tsed.dev/ai/AGENTS.md")) {
15
+ return Promise.resolve("AGENTS.md content");
16
+ }
14
17
  process.stdout.write("Entries missing for FakeCliHttpClient: " + key + "\n");
15
18
  }
16
19
  return FakeCliHttpClient.entries.get(key)?.(endpoint, options);
@@ -1,11 +1,10 @@
1
1
  import "@tsed/logger-std";
2
2
  import { DITest, InjectorService } from "@tsed/cli-core";
3
- import { Type } from "@tsed/core";
4
3
  export declare class CliPlatformTest extends DITest {
5
4
  static reset(): Promise<void>;
6
5
  static bootstrap(options?: Partial<TsED.Configuration>): Promise<void>;
7
6
  static initProject(options?: any): Promise<void>;
8
- static create(options?: Partial<TsED.Configuration>, rootModule?: Type): Promise<void>;
7
+ static create(options?: Partial<TsED.Configuration>): Promise<void>;
9
8
  /**
10
9
  * Create a new injector with the right default services
11
10
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tsed/cli-testing",
3
3
  "description": "Utils to test you CLI based on Ts.ED CLI",
4
- "version": "7.0.0-alpha.9",
4
+ "version": "7.0.0-beta.10",
5
5
  "type": "module",
6
6
  "main": "./lib/esm/index.js",
7
7
  "source": "./src/index.ts",
@@ -30,11 +30,11 @@
30
30
  "decorators"
31
31
  ],
32
32
  "dependencies": {
33
- "@tsed/cli-core": "7.0.0-alpha.9",
33
+ "@tsed/cli-core": "7.0.0-beta.10",
34
34
  "tslib": "2.7.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@tsed/typescript": "7.0.0-alpha.9",
37
+ "@tsed/typescript": "7.0.0-beta.10",
38
38
  "cross-env": "7.0.3",
39
39
  "typescript": "5.6.2",
40
40
  "vitest": "3.2.4"
@@ -48,6 +48,6 @@
48
48
  "author": "Romain Lenzotti",
49
49
  "license": "MIT",
50
50
  "publishConfig": {
51
- "tag": "alpha"
51
+ "tag": "beta"
52
52
  }
53
53
  }