@eggjs/bin 8.0.2-beta.3 → 8.0.2-beta.5
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.
- package/dist/commands/cov.d.ts +9 -8
- package/dist/commands/dev.d.ts +5 -5
- package/dist/commands/test.d.ts +9 -8
- package/dist/commands/test.js +10 -2
- package/package.json +9 -8
package/dist/commands/cov.d.ts
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import Test from "./test.js";
|
|
2
2
|
import { InlineConfig } from "vitest/node";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _oclif_core_interfaces6 from "@oclif/core/interfaces";
|
|
4
4
|
|
|
5
5
|
//#region src/commands/cov.d.ts
|
|
6
6
|
declare class Cov<T extends typeof Cov> extends Test<T> {
|
|
7
7
|
static description: string;
|
|
8
8
|
static examples: string[];
|
|
9
9
|
static flags: {
|
|
10
|
-
exclude:
|
|
11
|
-
bail:
|
|
12
|
-
timeout:
|
|
13
|
-
'no-timeout':
|
|
14
|
-
grep:
|
|
15
|
-
changed:
|
|
16
|
-
watch:
|
|
10
|
+
exclude: _oclif_core_interfaces6.OptionFlag<string[] | undefined, _oclif_core_interfaces6.CustomOptions>;
|
|
11
|
+
bail: _oclif_core_interfaces6.BooleanFlag<boolean>;
|
|
12
|
+
timeout: _oclif_core_interfaces6.OptionFlag<number, _oclif_core_interfaces6.CustomOptions>;
|
|
13
|
+
'no-timeout': _oclif_core_interfaces6.BooleanFlag<boolean>;
|
|
14
|
+
grep: _oclif_core_interfaces6.OptionFlag<string | undefined, _oclif_core_interfaces6.CustomOptions>;
|
|
15
|
+
changed: _oclif_core_interfaces6.BooleanFlag<boolean>;
|
|
16
|
+
watch: _oclif_core_interfaces6.BooleanFlag<boolean>;
|
|
17
|
+
pool: _oclif_core_interfaces6.OptionFlag<string, _oclif_core_interfaces6.CustomOptions>;
|
|
17
18
|
};
|
|
18
19
|
protected get defaultCoverageExcludes(): string[];
|
|
19
20
|
/**
|
package/dist/commands/dev.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { BaseCommand } from "../baseCommand.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _oclif_core_interfaces0 from "@oclif/core/interfaces";
|
|
3
3
|
|
|
4
4
|
//#region src/commands/dev.d.ts
|
|
5
5
|
declare class Dev<T extends typeof Dev> extends BaseCommand<T> {
|
|
6
6
|
static description: string;
|
|
7
7
|
static examples: string[];
|
|
8
8
|
static flags: {
|
|
9
|
-
port:
|
|
10
|
-
workers:
|
|
11
|
-
framework:
|
|
12
|
-
sticky:
|
|
9
|
+
port: _oclif_core_interfaces0.OptionFlag<number | undefined, _oclif_core_interfaces0.CustomOptions>;
|
|
10
|
+
workers: _oclif_core_interfaces0.OptionFlag<number, _oclif_core_interfaces0.CustomOptions>;
|
|
11
|
+
framework: _oclif_core_interfaces0.OptionFlag<string | undefined, _oclif_core_interfaces0.CustomOptions>;
|
|
12
|
+
sticky: _oclif_core_interfaces0.BooleanFlag<boolean>;
|
|
13
13
|
};
|
|
14
14
|
run(): Promise<void>;
|
|
15
15
|
protected formatEggStartOptions(): Promise<{
|
package/dist/commands/test.d.ts
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { BaseCommand } from "../baseCommand.js";
|
|
2
2
|
import { InlineConfig } from "vitest/node";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _oclif_core_interfaces18 from "@oclif/core/interfaces";
|
|
4
4
|
|
|
5
5
|
//#region src/commands/test.d.ts
|
|
6
6
|
declare class Test<T extends typeof Test> extends BaseCommand<T> {
|
|
7
7
|
static args: {
|
|
8
|
-
file:
|
|
8
|
+
file: _oclif_core_interfaces18.Arg<string | undefined, Record<string, unknown>>;
|
|
9
9
|
};
|
|
10
10
|
static description: string;
|
|
11
11
|
static examples: string[];
|
|
12
12
|
static flags: {
|
|
13
|
-
bail:
|
|
14
|
-
timeout:
|
|
15
|
-
'no-timeout':
|
|
16
|
-
grep:
|
|
17
|
-
changed:
|
|
18
|
-
watch:
|
|
13
|
+
bail: _oclif_core_interfaces18.BooleanFlag<boolean>;
|
|
14
|
+
timeout: _oclif_core_interfaces18.OptionFlag<number, _oclif_core_interfaces18.CustomOptions>;
|
|
15
|
+
'no-timeout': _oclif_core_interfaces18.BooleanFlag<boolean>;
|
|
16
|
+
grep: _oclif_core_interfaces18.OptionFlag<string | undefined, _oclif_core_interfaces18.CustomOptions>;
|
|
17
|
+
changed: _oclif_core_interfaces18.BooleanFlag<boolean>;
|
|
18
|
+
watch: _oclif_core_interfaces18.BooleanFlag<boolean>;
|
|
19
|
+
pool: _oclif_core_interfaces18.OptionFlag<string, _oclif_core_interfaces18.CustomOptions>;
|
|
19
20
|
};
|
|
20
21
|
run(): Promise<void>;
|
|
21
22
|
protected buildVitestConfig(files: string[]): Promise<InlineConfig>;
|
package/dist/commands/test.js
CHANGED
|
@@ -45,6 +45,11 @@ var Test = class extends BaseCommand {
|
|
|
45
45
|
description: "run tests in watch mode",
|
|
46
46
|
default: false,
|
|
47
47
|
char: "w"
|
|
48
|
+
}),
|
|
49
|
+
pool: Flags.string({
|
|
50
|
+
description: "vitest worker pool type",
|
|
51
|
+
options: ["forks", "threads"],
|
|
52
|
+
default: process.env.EGG_VITEST_POOL ?? "threads"
|
|
48
53
|
})
|
|
49
54
|
};
|
|
50
55
|
async run() {
|
|
@@ -89,6 +94,8 @@ var Test = class extends BaseCommand {
|
|
|
89
94
|
return (path.isAbsolute(f) ? f : path.join(flags.base, f)).replace(/\\/g, "/");
|
|
90
95
|
});
|
|
91
96
|
process.env.EGG_BIN_TIMEOUT = String(flags.timeout);
|
|
97
|
+
process.env.EGG_VITEST_POOL = flags.pool;
|
|
98
|
+
process.env.EGG_VITEST_ISOLATE = process.env.EGG_VITEST_ISOLATE ?? "false";
|
|
92
99
|
debug("run test with vitest, files: %o, flags: %o", files, flags);
|
|
93
100
|
const config = await this.buildVitestConfig(files);
|
|
94
101
|
if (flags["dry-run"]) {
|
|
@@ -151,8 +158,9 @@ var Test = class extends BaseCommand {
|
|
|
151
158
|
setupFiles,
|
|
152
159
|
runner,
|
|
153
160
|
reporters: [process.env.TEST_REPORTER ?? "default"],
|
|
154
|
-
pool:
|
|
155
|
-
|
|
161
|
+
pool: flags.pool,
|
|
162
|
+
isolate: process.env.EGG_VITEST_ISOLATE !== "false",
|
|
163
|
+
fileParallelism: process.env.EGG_FILE_PARALLELISM === "true",
|
|
156
164
|
execArgv: [...this.globalExecArgv],
|
|
157
165
|
watch: flags.watch,
|
|
158
166
|
globals: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eggjs/bin",
|
|
3
|
-
"version": "8.0.2-beta.
|
|
3
|
+
"version": "8.0.2-beta.5",
|
|
4
4
|
"description": "egg developer tool",
|
|
5
5
|
"homepage": "https://github.com/eggjs/egg/tree/next/tools/egg-bin",
|
|
6
6
|
"bugs": {
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"tsconfig-paths": "^4.2.0",
|
|
50
50
|
"utility": "^2.5.0",
|
|
51
51
|
"vitest": "^4.0.15",
|
|
52
|
-
"@eggjs/tegg-vitest": "4.0.2-beta.
|
|
53
|
-
"@eggjs/utils": "5.0.2-beta.
|
|
52
|
+
"@eggjs/tegg-vitest": "4.0.2-beta.5",
|
|
53
|
+
"@eggjs/utils": "5.0.2-beta.5"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@swc-node/register": "^1.11.1",
|
|
@@ -64,14 +64,15 @@
|
|
|
64
64
|
"npminstall": "^7.12.0",
|
|
65
65
|
"rimraf": "^6.1.2",
|
|
66
66
|
"runscript": "^2.0.1",
|
|
67
|
+
"sdk-base": "^5.0.1",
|
|
67
68
|
"typescript": "^5.9.3",
|
|
68
|
-
"@eggjs/
|
|
69
|
-
"@eggjs/
|
|
70
|
-
"@eggjs/
|
|
71
|
-
"egg": "4.1.2-beta.
|
|
69
|
+
"@eggjs/mock": "7.0.2-beta.5",
|
|
70
|
+
"@eggjs/tsconfig": "3.1.2-beta.5",
|
|
71
|
+
"@eggjs/supertest": "9.0.2-beta.5",
|
|
72
|
+
"egg": "4.1.2-beta.5"
|
|
72
73
|
},
|
|
73
74
|
"peerDependencies": {
|
|
74
|
-
"@eggjs/mock": "7.0.2-beta.
|
|
75
|
+
"@eggjs/mock": "7.0.2-beta.5"
|
|
75
76
|
},
|
|
76
77
|
"peerDependenciesMeta": {
|
|
77
78
|
"@eggjs/mock": {
|