Commit 35deef9
Add regression test for non-canonical path shapes
Extends the same-path guard coverage with a case where localOutputDir
and bundleOutputDir are string-distinct but resolve to the same
directory (`/test/extension/dist` vs `/test/./extension/dist`). This
is the actual shape that triggered the original fs-extra "Source and
destination must not be the same" failure in the field — the existing
identical-strings test did not catch it because both the old and new
guard handle the trivial case.
Verified that this test fails against the pre-fix guard (`copyFile`
is called with distinct strings) and passes once the guard normalizes
both sides with `resolvePath`.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e94c94e commit 35deef9
1 file changed
Lines changed: 9 additions & 0 deletions
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
60 | 69 | | |
0 commit comments