@serenity-js/core
Version:
The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure
25 lines (21 loc) • 778 B
text/typescript
import type { JSONObject} from 'tiny-types';
import { TinyType } from 'tiny-types';
import { FileSystemLocation } from '../io/index.js';
import { CorrelationId } from './CorrelationId.js';
import { Name } from './Name.js';
export class TestSuiteDetails extends TinyType {
static fromJSON(o: JSONObject): TestSuiteDetails {
return new TestSuiteDetails(
Name.fromJSON(o.name as string),
FileSystemLocation.fromJSON(o.location as JSONObject),
CorrelationId.fromJSON(o.correlationId as string),
);
}
constructor(
public readonly name: Name,
public readonly location: FileSystemLocation,
public readonly correlationId: CorrelationId = CorrelationId.create(),
) {
super();
}
}