diff --git a/.changeset/loud-trainers-dress.md b/.changeset/loud-trainers-dress.md new file mode 100644 index 00000000..b918b3dd --- /dev/null +++ b/.changeset/loud-trainers-dress.md @@ -0,0 +1,5 @@ +--- +"@replayio/test-utils": patch +--- + +Gather data about deprecated `filter` config usage (as preparation to remove it) diff --git a/packages/test-utils/src/reporter.ts b/packages/test-utils/src/reporter.ts index 36d44220..edd06831 100644 --- a/packages/test-utils/src/reporter.ts +++ b/packages/test-utils/src/reporter.ts @@ -257,6 +257,17 @@ export default class ReplayReporter< }) ); } + + // Logging this here instead of in _parseConfig is intentional; the logger has been associated with the user's API key + if (config) { + if (config.filter) { + logger.info("ReplayReporter:Config:HasFilter", { + filter: config.filter.toString(), + }); + } else { + logger.info("ReplayReporter:Config:NoFilter"); + } + } } setTestRunnerVersion(version: TestRunner["version"]) {