Skip to content

Commit 896d9ac

Browse files
committed
fix: add steps and step-definitions to SPEC_FILE_PATTERN regex
1 parent 5f12206 commit 896d9ac

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/service/src/constants.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,11 @@ export const CONTEXT_CHANGE_COMMANDS = [
9898
]
9999

100100
/**
101-
* Existing pattern (kept for any external consumers)
101+
* Shared pattern for identifying test-related file paths.
102+
* Kept as a public export for consumers and may be expanded as supported locations evolve.
102103
*/
103104
export const SPEC_FILE_PATTERN =
104-
/\/(test|spec|features|pageobjects|@wdio\/expect-webdriverio)\//i
105+
/\/(test|spec|features|steps|step[-_]?definitions|pageobjects|@wdio\/expect-webdriverio)\//i
105106

106107
/**
107108
* Parser options

0 commit comments

Comments
 (0)