@dionlarson/playwright-orchestrator-mongo 1.6.1 → 1.6.3
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/mongo-db-adapter.js +4 -2
- package/dist/types.d.ts +2 -1
- package/package.json +1 -1
package/dist/mongo-db-adapter.js
CHANGED
|
@@ -37,7 +37,7 @@ export class MongoDbAdapter extends Adapter {
|
|
|
37
37
|
});
|
|
38
38
|
if (!result)
|
|
39
39
|
return undefined;
|
|
40
|
-
const { file, line, column, project, timeout, title } = result;
|
|
40
|
+
const { file, line, column, project, timeout, title, isSerial } = result;
|
|
41
41
|
const { order } = this.parseTestId(result._id);
|
|
42
42
|
return {
|
|
43
43
|
file,
|
|
@@ -46,6 +46,7 @@ export class MongoDbAdapter extends Adapter {
|
|
|
46
46
|
timeout,
|
|
47
47
|
order,
|
|
48
48
|
title,
|
|
49
|
+
isSerial: isSerial ?? false,
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
52
|
async finishTest(params) {
|
|
@@ -105,7 +106,7 @@ export class MongoDbAdapter extends Adapter {
|
|
|
105
106
|
updated: new Date(),
|
|
106
107
|
};
|
|
107
108
|
await this.runs.insertOne(run);
|
|
108
|
-
await this.tests.insertMany(tests.map(({ file, order, position, project, timeout, title }) => {
|
|
109
|
+
await this.tests.insertMany(tests.map(({ file, order, position, project, timeout, title, isSerial }) => {
|
|
109
110
|
const [line, column] = position.split(':').map(Number);
|
|
110
111
|
return {
|
|
111
112
|
_id: this.generateTestId(runId, order),
|
|
@@ -115,6 +116,7 @@ export class MongoDbAdapter extends Adapter {
|
|
|
115
116
|
title,
|
|
116
117
|
line,
|
|
117
118
|
column,
|
|
119
|
+
isSerial: isSerial ?? false,
|
|
118
120
|
status: TestStatus.Ready,
|
|
119
121
|
updated: new Date(),
|
|
120
122
|
...(this.debug ? { runId, order } : {}),
|
package/dist/types.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export interface TestRunDocument extends Document {
|
|
|
8
8
|
updated: Date;
|
|
9
9
|
historyWindow: number;
|
|
10
10
|
}
|
|
11
|
-
export interface TestDocument extends Document, Omit<TestItem, 'order' | 'position'> {
|
|
11
|
+
export interface TestDocument extends Document, Omit<TestItem, 'order' | 'position' | 'isSerial'> {
|
|
12
12
|
_id: Binary;
|
|
13
13
|
runId?: string;
|
|
14
14
|
order?: number;
|
|
@@ -16,6 +16,7 @@ export interface TestDocument extends Document, Omit<TestItem, 'order' | 'positi
|
|
|
16
16
|
column: number;
|
|
17
17
|
status: TestStatus;
|
|
18
18
|
updated: Date;
|
|
19
|
+
isSerial?: boolean;
|
|
19
20
|
report?: TestItemReport;
|
|
20
21
|
}
|
|
21
22
|
export interface TestItemReport {
|