We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf15f44 commit 1432413Copy full SHA for 1432413
1 file changed
codeflash/languages/javascript/vitest_runner.py
@@ -176,11 +176,12 @@ def _is_vitest_workspace(project_root: Path) -> bool:
176
# - workspace: [ array config
177
# - separate vitest.workspace.ts/js file
178
import re
179
+
180
# Match defineWorkspace calls or workspace: property assignments
181
workspace_pattern = re.compile(
- r'(?:^|[^a-zA-Z_])defineWorkspace\s*\(|' # defineWorkspace( function call
182
- r'(?:^|[^a-zA-Z_])workspace\s*:\s*\[', # workspace: [ array
183
- re.MULTILINE
+ r"(?:^|[^a-zA-Z_])defineWorkspace\s*\(|" # defineWorkspace( function call
+ r"(?:^|[^a-zA-Z_])workspace\s*:\s*\[", # workspace: [ array
184
+ re.MULTILINE,
185
)
186
if workspace_pattern.search(content):
187
return True
0 commit comments