@travetto/test 7.0.5 → 7.0.6
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/test",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Declarative test framework",
|
|
6
6
|
"keywords": [
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"directory": "module/test"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@travetto/registry": "^7.0.
|
|
32
|
-
"@travetto/runtime": "^7.0.
|
|
33
|
-
"@travetto/terminal": "^7.0.
|
|
34
|
-
"@travetto/worker": "^7.0.
|
|
31
|
+
"@travetto/registry": "^7.0.6",
|
|
32
|
+
"@travetto/runtime": "^7.0.5",
|
|
33
|
+
"@travetto/terminal": "^7.0.5",
|
|
34
|
+
"@travetto/worker": "^7.0.5",
|
|
35
35
|
"yaml": "^2.8.2"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@travetto/cli": "^7.0.
|
|
39
|
-
"@travetto/transformer": "^7.0.
|
|
38
|
+
"@travetto/cli": "^7.0.7",
|
|
39
|
+
"@travetto/transformer": "^7.0.5"
|
|
40
40
|
},
|
|
41
41
|
"peerDependenciesMeta": {
|
|
42
42
|
"@travetto/transformer": {
|
package/src/execute/run.ts
CHANGED
|
@@ -220,11 +220,11 @@ export class RunUtil {
|
|
|
220
220
|
static async runTests(consumerConfig: TestConsumerConfig, input: TestRunInput): Promise<boolean | undefined> {
|
|
221
221
|
const { runs, removes } = await this.resolveInput(input);
|
|
222
222
|
|
|
223
|
-
await this.reinitManifestIfNeeded(runs);
|
|
224
|
-
|
|
225
223
|
const targetConsumer = await TestConsumerRegistryIndex.getInstance(consumerConfig);
|
|
226
224
|
const consumer = await this.getRunnableConsumer(targetConsumer, runs);
|
|
227
225
|
|
|
226
|
+
await this.reinitManifestIfNeeded(runs);
|
|
227
|
+
|
|
228
228
|
for (const item of removes ?? []) {
|
|
229
229
|
consumer.onRemoveEvent(item);
|
|
230
230
|
}
|
|
@@ -22,6 +22,8 @@ function combineClasses(baseConfig: SuiteConfig, ...subConfig: Partial<SuiteConf
|
|
|
22
22
|
if (config.tags) {
|
|
23
23
|
baseConfig.tags = [...baseConfig.tags ?? [], ...config.tags];
|
|
24
24
|
}
|
|
25
|
+
baseConfig.skip = config.skip ?? baseConfig.skip;
|
|
26
|
+
|
|
25
27
|
if (config.tests) {
|
|
26
28
|
for (const [key, test] of Object.entries(config.tests ?? {})) {
|
|
27
29
|
baseConfig.tests[key] = {
|
|
@@ -66,6 +68,7 @@ export class SuiteRegistryAdapter implements RegistryAdapter<SuiteConfig> {
|
|
|
66
68
|
class: this.#cls,
|
|
67
69
|
classId: this.#cls.Ⲑid,
|
|
68
70
|
tags: [],
|
|
71
|
+
skip: false,
|
|
69
72
|
import: Runtime.getImport(this.#cls),
|
|
70
73
|
lineStart: lines?.[0],
|
|
71
74
|
lineEnd: lines?.[1],
|
|
@@ -89,6 +92,7 @@ export class SuiteRegistryAdapter implements RegistryAdapter<SuiteConfig> {
|
|
|
89
92
|
const config = asFull<TestConfig>({
|
|
90
93
|
class: this.#cls,
|
|
91
94
|
tags: [],
|
|
95
|
+
skip: false,
|
|
92
96
|
import: Runtime.getImport(this.#cls),
|
|
93
97
|
lineStart: lines?.[0],
|
|
94
98
|
lineEnd: lines?.[1],
|
package/src/worker/standard.ts
CHANGED
|
@@ -20,16 +20,12 @@ const log = (message: string | TestLogEvent): void => {
|
|
|
20
20
|
export async function buildStandardTestManager(consumer: TestConsumerShape, run: TestRun | TestDiffInput): Promise<void> {
|
|
21
21
|
log(`Worker Input ${JSON.stringify(run)}`);
|
|
22
22
|
|
|
23
|
-
const suiteMod = RuntimeIndex.findModuleForArbitraryImport(run.import)!;
|
|
24
|
-
|
|
25
23
|
const channel = new IpcChannel<TestEvent & { error?: Error }>(
|
|
26
24
|
fork(
|
|
27
25
|
RuntimeIndex.resolveFileImport('@travetto/cli/support/entry.trv.ts'), ['test:child'],
|
|
28
26
|
{
|
|
29
|
-
cwd: suiteMod.sourcePath,
|
|
30
27
|
env: {
|
|
31
28
|
...process.env,
|
|
32
|
-
...Env.TRV_MANIFEST.export(suiteMod.outputPath),
|
|
33
29
|
...Env.TRV_QUIET.export(true)
|
|
34
30
|
},
|
|
35
31
|
stdio: ['ignore', 'ignore', 2, 'ipc']
|