allow-list options

This commit is contained in:
Max Schmitt 2025-02-17 22:57:24 +01:00
parent 9c544f60d0
commit 1a0919d69c

View file

@ -184,11 +184,17 @@ export class TeleReporterEmitter implements ReporterV2 {
dependencies: project.dependencies,
snapshotDir: this._relativePath(project.snapshotDir),
teardown: project.teardown,
use: project.use,
use: this._serializeProjectUseOptions(project.use),
};
return report;
}
private _serializeProjectUseOptions(use: reporterTypes.FullProject['use']): Record<string, any> {
return {
testIdAttribute: use.testIdAttribute,
}
}
private _serializeSuite(suite: reporterTypes.Suite): teleReceiver.JsonSuite {
const result = {
title: suite.title,