From 896d9ac8889a67b9835e9f557059100e7cf1c137 Mon Sep 17 00:00:00 2001 From: Mrunal Chaudhari Date: Mon, 11 May 2026 18:48:28 +0530 Subject: [PATCH] fix: add steps and step-definitions to SPEC_FILE_PATTERN regex --- packages/service/src/constants.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/service/src/constants.ts b/packages/service/src/constants.ts index fc4ebe5..ef9b78a 100644 --- a/packages/service/src/constants.ts +++ b/packages/service/src/constants.ts @@ -98,10 +98,11 @@ export const CONTEXT_CHANGE_COMMANDS = [ ] /** - * Existing pattern (kept for any external consumers) + * Shared pattern for identifying test-related file paths. + * Kept as a public export for consumers and may be expanded as supported locations evolve. */ export const SPEC_FILE_PATTERN = - /\/(test|spec|features|pageobjects|@wdio\/expect-webdriverio)\//i + /\/(test|spec|features|steps|step[-_]?definitions|pageobjects|@wdio\/expect-webdriverio)\//i /** * Parser options