Skip to content

fix(types): typescript syntax error and test cases - #1937

Closed
aioya wants to merge 8 commits into
varletjs:devfrom
aioya:dev-fix
Closed

fix(types): typescript syntax error and test cases#1937
aioya wants to merge 8 commits into
varletjs:devfrom
aioya:dev-fix

Conversation

@aioya

@aioya aioya commented Dec 11, 2025

Copy link
Copy Markdown
Collaborator

Checklist

List of tasks you have already done and plan to do.

  • Fix linting errors
  • Tests have been added / updated (or snapshots)

Change information

Fix typescript syntax error, fix test cases and format code

@vercel

vercel Bot commented Dec 11, 2025

Copy link
Copy Markdown

@Aybrea is attempting to deploy a commit to the varletjs Team on Vercel.

A member of the Team first needs to authorize it.

@pkg-pr-new

pkg-pr-new Bot commented Dec 11, 2025

Copy link
Copy Markdown

Open in StackBlitz

@varlet/cli

npm i https://pkg.pr.new/@varlet/cli@1937

@varlet/icons

npm i https://pkg.pr.new/@varlet/icons@1937

@varlet/import-resolver

npm i https://pkg.pr.new/@varlet/import-resolver@1937

@varlet/preset-tailwindcss

npm i https://pkg.pr.new/@varlet/preset-tailwindcss@1937

@varlet/preset-unocss

npm i https://pkg.pr.new/@varlet/preset-unocss@1937

@varlet/shared

npm i https://pkg.pr.new/@varlet/shared@1937

@varlet/touch-emulator

npm i https://pkg.pr.new/@varlet/touch-emulator@1937

@varlet/ui

npm i https://pkg.pr.new/@varlet/ui@1937

@varlet/use

npm i https://pkg.pr.new/@varlet/use@1937

@varlet/vite-plugins

npm i https://pkg.pr.new/@varlet/vite-plugins@1937

commit: 82ba5df

@aioya aioya changed the title fix(types): typescript syntax error fix(types): typescript syntax error and test cases Dec 11, 2025
aioya and others added 4 commits December 22, 2025 14:50
This workflow can be manually triggered to update all snapshots in the
Linux environment matching CI (ubuntu-latest with Node 20.19.5).
This ensures snapshots match what CI expects, fixing platform-specific
snapshot mismatches.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
The test was checking for the exact string 'calc(100px * 0.9)', but
in the Linux CI environment, the browser simplifies it to 'calc(90px)'.
Updated the test to accept both formats using regex matching.

This fixes the assertion error that was preventing the snapshot update
workflow from completing successfully.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@haoziqaq haoziqaq closed this Jan 21, 2026
@aioya
aioya deleted the dev-fix branch January 22, 2026 12:07
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