Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@ const globPattern = normalize(path.join(root, '**/*.liquid'));

**Important: `normalize-path` is for filesystem paths only, NOT URIs.** It collapses multiple slashes (e.g., `file:///` becomes `file:/`), which breaks URI semantics. For URI strings (`file://...`), use the `normalize()` function from `platformos-check-common/src/path.ts` which works with `vscode-uri`. For raw backslash replacement in URIs where you can't use the common normalize, use `.replace(/\\/g, '/')`.

## Test Assertion Guidelines

- Always use `.to.equal()` for message assertions, never `.to.include()` — assert the entire expected string
- Do not use regex for matching in tests unless absolutely necessary
- For array assertions (e.g., `applySuggestions` results), use `.to.deep.equal([...])` instead of `.to.include(element)`
- When multiple `.include()` calls check the same value, collapse them into a single `.to.equal()`

## Development Workflows

### Online Store Web Integration
Expand Down
Loading