Skip to content

test: add tests for mergeDeep, tighten types#399

Merged
gka merged 3 commits into
mainfrom
fix/types-merge-deep
Feb 19, 2026
Merged

test: add tests for mergeDeep, tighten types#399
gka merged 3 commits into
mainfrom
fix/types-merge-deep

Conversation

@ljodea

@ljodea ljodea commented Feb 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add 14 unit tests for mergeDeep covering shallow/deep merge, multiple sources, array overwrite, null preservation, source immutability, falsy value handling, and deeply nested objects
  • Tighten ObjectType from { [key: string]: any } to Record<string, unknown>
  • Change isObject parameter type from any to unknown
  • Replace recursive sources.shift() with iterative for-of loop (avoids array mutation and repeated spread+recurse)

Test plan

  • All 14 new mergeDeep tests pass
  • Full test suite passes (631 tests, 79 files)
  • 0 svelte-check errors

🤖 Generated with Claude Code

- Add 14 unit tests covering shallow/deep merge, multiple sources,
  array overwrite, null preservation, source immutability, and falsy values
- Tighten ObjectType from `{ [key: string]: any }` to `Record<string, unknown>`
- Change isObject param from `any` to `unknown`
- Replace recursive sources.shift() with iterative for-of loop

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@netlify

netlify Bot commented Feb 19, 2026

Copy link
Copy Markdown

Deploy Preview for svelteplot ready!

Name Link
🔨 Latest commit f66bb40
🔍 Latest deploy log https://app.netlify.com/projects/svelteplot/deploys/69978c13760e2d00072b799c
😎 Deploy Preview https://deploy-preview-399--svelteplot.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@gka gka merged commit ecee608 into main Feb 19, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants