@eggjs/bin 8.0.0-beta.17 → 8.0.0-beta.19
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/README.md +0 -1
- package/dist/commands/cov.d.ts +12 -13
- package/dist/commands/dev.d.ts +5 -5
- package/dist/commands/test.d.ts +10 -11
- package/dist/commands/test.js +1 -14
- package/package.json +11 -12
package/README.md
CHANGED
|
@@ -136,7 +136,6 @@ You can pass any mocha argv.
|
|
|
136
136
|
- `--parallel` enable mocha parallel mode, default to `false`.
|
|
137
137
|
- `--auto-agent` auto start agent in mocha master agent.
|
|
138
138
|
- `--jobs` number of jobs to run in parallel, default to `os.cpus().length - 1`.
|
|
139
|
-
- `--mochawesome` enable [mochawesome](https://github.com/adamgruber/mochawesome) reporter, default to `true`.
|
|
140
139
|
|
|
141
140
|
#### test environment
|
|
142
141
|
|
package/dist/commands/cov.d.ts
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import { ForkNodeOptions } from "../baseCommand.js";
|
|
2
2
|
import { Test } from "./test.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _oclif_core_interfaces11 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
|
-
prerequire:
|
|
11
|
-
exclude:
|
|
12
|
-
c8:
|
|
13
|
-
bail:
|
|
14
|
-
timeout:
|
|
15
|
-
'no-timeout':
|
|
16
|
-
grep:
|
|
17
|
-
changed:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
'auto-agent': _oclif_core_interfaces0.BooleanFlag<boolean>;
|
|
10
|
+
prerequire: _oclif_core_interfaces11.BooleanFlag<boolean>;
|
|
11
|
+
exclude: _oclif_core_interfaces11.OptionFlag<string[] | undefined, _oclif_core_interfaces11.CustomOptions>;
|
|
12
|
+
c8: _oclif_core_interfaces11.OptionFlag<string, _oclif_core_interfaces11.CustomOptions>;
|
|
13
|
+
bail: _oclif_core_interfaces11.BooleanFlag<boolean>;
|
|
14
|
+
timeout: _oclif_core_interfaces11.OptionFlag<number, _oclif_core_interfaces11.CustomOptions>;
|
|
15
|
+
'no-timeout': _oclif_core_interfaces11.BooleanFlag<boolean>;
|
|
16
|
+
grep: _oclif_core_interfaces11.OptionFlag<string | undefined, _oclif_core_interfaces11.CustomOptions>;
|
|
17
|
+
changed: _oclif_core_interfaces11.BooleanFlag<boolean>;
|
|
18
|
+
parallel: _oclif_core_interfaces11.BooleanFlag<boolean>;
|
|
19
|
+
jobs: _oclif_core_interfaces11.OptionFlag<number, _oclif_core_interfaces11.CustomOptions>;
|
|
20
|
+
'auto-agent': _oclif_core_interfaces11.BooleanFlag<boolean>;
|
|
22
21
|
};
|
|
23
22
|
protected get defaultExcludes(): string[];
|
|
24
23
|
protected forkNode(modulePath: string, forkArgs: string[], options?: ForkNodeOptions): Promise<void>;
|
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_interfaces27 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_interfaces27.OptionFlag<number | undefined, _oclif_core_interfaces27.CustomOptions>;
|
|
10
|
+
workers: _oclif_core_interfaces27.OptionFlag<number, _oclif_core_interfaces27.CustomOptions>;
|
|
11
|
+
framework: _oclif_core_interfaces27.OptionFlag<string | undefined, _oclif_core_interfaces27.CustomOptions>;
|
|
12
|
+
sticky: _oclif_core_interfaces27.BooleanFlag<boolean>;
|
|
13
13
|
};
|
|
14
14
|
run(): Promise<void>;
|
|
15
15
|
protected formatEggStartOptions(): Promise<{
|
package/dist/commands/test.d.ts
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
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/test.d.ts
|
|
5
5
|
declare class Test<T extends typeof Test> extends BaseCommand<T> {
|
|
6
6
|
static args: {
|
|
7
|
-
file:
|
|
7
|
+
file: _oclif_core_interfaces0.Arg<string | undefined, Record<string, unknown>>;
|
|
8
8
|
};
|
|
9
9
|
static description: string;
|
|
10
10
|
static examples: string[];
|
|
11
11
|
static flags: {
|
|
12
|
-
bail:
|
|
13
|
-
timeout:
|
|
14
|
-
'no-timeout':
|
|
15
|
-
grep:
|
|
16
|
-
changed:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
'auto-agent': _oclif_core_interfaces16.BooleanFlag<boolean>;
|
|
12
|
+
bail: _oclif_core_interfaces0.BooleanFlag<boolean>;
|
|
13
|
+
timeout: _oclif_core_interfaces0.OptionFlag<number, _oclif_core_interfaces0.CustomOptions>;
|
|
14
|
+
'no-timeout': _oclif_core_interfaces0.BooleanFlag<boolean>;
|
|
15
|
+
grep: _oclif_core_interfaces0.OptionFlag<string | undefined, _oclif_core_interfaces0.CustomOptions>;
|
|
16
|
+
changed: _oclif_core_interfaces0.BooleanFlag<boolean>;
|
|
17
|
+
parallel: _oclif_core_interfaces0.BooleanFlag<boolean>;
|
|
18
|
+
jobs: _oclif_core_interfaces0.OptionFlag<number, _oclif_core_interfaces0.CustomOptions>;
|
|
19
|
+
'auto-agent': _oclif_core_interfaces0.BooleanFlag<boolean>;
|
|
21
20
|
};
|
|
22
21
|
run(): Promise<void>;
|
|
23
22
|
protected runMocha(mochaFile: string, mochaArgs: string[]): Promise<void>;
|
package/dist/commands/test.js
CHANGED
|
@@ -41,11 +41,6 @@ var Test = class extends BaseCommand {
|
|
|
41
41
|
description: "only test with changed files and match test/**/*.test.(js|ts)",
|
|
42
42
|
char: "c"
|
|
43
43
|
}),
|
|
44
|
-
mochawesome: Flags.boolean({
|
|
45
|
-
description: "[default: true] enable mochawesome reporter",
|
|
46
|
-
default: true,
|
|
47
|
-
allowNo: true
|
|
48
|
-
}),
|
|
49
44
|
parallel: Flags.boolean({
|
|
50
45
|
description: "mocha parallel mode",
|
|
51
46
|
default: false,
|
|
@@ -97,13 +92,6 @@ var Test = class extends BaseCommand {
|
|
|
97
92
|
} catch (err) {
|
|
98
93
|
debug("auto register @eggjs/mock fail, can not require @eggjs/mock on %o, error: %s", flags.base, err.message);
|
|
99
94
|
}
|
|
100
|
-
let reporter = this.env.TEST_REPORTER;
|
|
101
|
-
let reporterOptions = "";
|
|
102
|
-
if (!reporter && flags.mochawesome) {
|
|
103
|
-
reporter = importResolve("mochawesome-with-mocha", { paths: [flags.base] });
|
|
104
|
-
reporterOptions = "reportDir=node_modules/.mochawesome-reports";
|
|
105
|
-
if (flags.parallel) requires.push(path.join(reporter, "../register.js"));
|
|
106
|
-
}
|
|
107
95
|
const ext = flags.typescript ? "ts" : "js";
|
|
108
96
|
let pattern = args.file ? args.file.split(",") : [];
|
|
109
97
|
if (flags.changed) {
|
|
@@ -146,8 +134,7 @@ var Test = class extends BaseCommand {
|
|
|
146
134
|
flags.timeout ? `--timeout=${flags.timeout}` : "--no-timeout",
|
|
147
135
|
flags.parallel ? "--parallel" : "",
|
|
148
136
|
flags.parallel && flags.jobs ? `--jobs=${flags.jobs}` : "",
|
|
149
|
-
|
|
150
|
-
reporterOptions ? `--reporter-options=${reporterOptions}` : "",
|
|
137
|
+
this.env.TEST_REPORTER ? `--reporter=${this.env.TEST_REPORTER}` : "",
|
|
151
138
|
...requires.map((r) => `--require=${r}`),
|
|
152
139
|
...files,
|
|
153
140
|
flags["dry-run"] ? "--dry-run" : ""
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eggjs/bin",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.19",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -21,23 +21,22 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@oclif/core": "^4.2.0",
|
|
23
23
|
"@types/mocha": "^10.0.10",
|
|
24
|
-
"c8": "10.1.3",
|
|
24
|
+
"c8": "^10.1.3",
|
|
25
25
|
"ci-parallel-vars": "^1.0.1",
|
|
26
26
|
"detect-port": "^2.1.0",
|
|
27
27
|
"egg-ts-helper": "^3.0.0",
|
|
28
28
|
"globby": "^11.0.2",
|
|
29
29
|
"jest-changed-files": "^30.0.0",
|
|
30
|
-
"mocha": "11.7.
|
|
31
|
-
"mochawesome-with-mocha": "8.0.0",
|
|
30
|
+
"mocha": "^11.7.4",
|
|
32
31
|
"runscript": "^2.0.1",
|
|
33
32
|
"ts-node": "^10.9.2",
|
|
34
33
|
"tsconfig-paths": "^4.2.0",
|
|
35
34
|
"utility": "^2.5.0",
|
|
36
|
-
"@eggjs/
|
|
37
|
-
"@eggjs/
|
|
35
|
+
"@eggjs/supertest": "9.0.0-beta.19",
|
|
36
|
+
"@eggjs/utils": "5.0.0-beta.19"
|
|
38
37
|
},
|
|
39
38
|
"peerDependencies": {
|
|
40
|
-
"@eggjs/mock": "7.0.0-beta.
|
|
39
|
+
"@eggjs/mock": "7.0.0-beta.19"
|
|
41
40
|
},
|
|
42
41
|
"peerDependenciesMeta": {
|
|
43
42
|
"@eggjs/mock": {
|
|
@@ -45,7 +44,7 @@
|
|
|
45
44
|
}
|
|
46
45
|
},
|
|
47
46
|
"devDependencies": {
|
|
48
|
-
"@types/node": "24.
|
|
47
|
+
"@types/node": "^24.6.2",
|
|
49
48
|
"@swc-node/register": "^1.11.1",
|
|
50
49
|
"@swc/core": "^1.13.5",
|
|
51
50
|
"assert-file": "1",
|
|
@@ -55,11 +54,11 @@
|
|
|
55
54
|
"esbuild-register": "^3.6.0",
|
|
56
55
|
"npminstall": "^7.12.0",
|
|
57
56
|
"rimraf": "^6.0.1",
|
|
58
|
-
"typescript": "5.9.
|
|
57
|
+
"typescript": "^5.9.3",
|
|
59
58
|
"tsdown": "^0.15.4",
|
|
60
|
-
"@eggjs/mock": "7.0.0-beta.
|
|
61
|
-
"
|
|
62
|
-
"
|
|
59
|
+
"@eggjs/mock": "7.0.0-beta.19",
|
|
60
|
+
"@eggjs/tsconfig": "3.1.0-beta.19",
|
|
61
|
+
"egg": "4.1.0-beta.19"
|
|
63
62
|
},
|
|
64
63
|
"type": "module",
|
|
65
64
|
"files": [
|