Skip to content

feat: finalization

feat: finalization #32

Triggered via pull request January 18, 2025 10:39
@AmirSa12AmirSa12
synchronize #4
api
Status Failure
Total duration 27s
Artifacts

ci.yml

on: pull_request
Type Check
16s
Type Check
Matrix: Tests
Fit to window
Zoom out
Zoom in

Annotations

23 errors and 1 warning
tests/cli.test.ts > cli completion tests for citty > should complete cli options: tests/cli.test.ts#L23
Error: Snapshot `cli completion tests for citty > should complete cli options 1` mismatched - Expected + Received - "dev - devbuild + "{ + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: Map(3) { + '--config' => { + description: 'Use specified config file', + handler: [AsyncFunction (anonymous)] + }, + '--mode' => { + description: 'Set env mode', + handler: [AsyncFunction (anonymous)] + }, + '--logLevel' => { + description: 'info | warn | error | silent', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { + '--host' => { + description: 'Specify hostname', + handler: [AsyncFunction (anonymous)] + }, + '--port' => { + description: 'Specify port', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { '--host' => [Object], '--port' => [Object] }, + parent: undefined + } + } + { + name: 'lint', + description: 'Lint project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: undefined + } + lint + Completion { + commands: Map(4) { + '' => { + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev' => { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev build' => { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: [Object] + }, + 'lint' => { + name: 'lint', + description: 'Lint project', + handler: [Function (anonymous)], + options: Map(0) {}, + parent: undefined + } + } + } + dev Start dev server + lint Lint project + :4 " ❯ tests/cli.test.ts:23:20
tests/cli.test.ts > cli completion tests for citty > cli option completion tests > should complete option for partial input '{ partial: '--p', expected: '--port' }': tests/cli.test.ts#L34
Error: Snapshot `cli completion tests for citty > cli option completion tests > should complete option for partial input '{ partial: '--p', expected: '--port' }' 1` mismatched - Expected + Received - "--port Specify port + "{ + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: Map(3) { + '--config' => { + description: 'Use specified config file', + handler: [AsyncFunction (anonymous)] + }, + '--mode' => { + description: 'Set env mode', + handler: [AsyncFunction (anonymous)] + }, + '--logLevel' => { + description: 'info | warn | error | silent', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { + '--host' => { + description: 'Specify hostname', + handler: [AsyncFunction (anonymous)] + }, + '--port' => { + description: 'Specify port', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { '--host' => [Object], '--port' => [Object] }, + parent: undefined + } + } + { + name: 'lint', + description: 'Lint project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: undefined + } + lint + Completion { + commands: Map(4) { + '' => { + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev' => { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev build' => { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: [Object] + }, + 'lint' => { + name: 'lint', + description: 'Lint project', + handler: [Function (anonymous)], + options: Map(0) {}, + parent: undefined + } + } + } + --port Specify port + :4 " ❯ tests/cli.test.ts:34:24
tests/cli.test.ts > cli completion tests for citty > cli option exclusion tests > should not suggest already specified option '{ specified: '--config', shouldNotContain: '--config' }': tests/cli.test.ts#L49
Error: Snapshot `cli completion tests for citty > cli option exclusion tests > should not suggest already specified option '{ specified: '--config', shouldNotContain: '--config' }' 1` mismatched - Expected + Received - "--mode Set env mode + "{ + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: Map(3) { + '--config' => { + description: 'Use specified config file', + handler: [AsyncFunction (anonymous)] + }, + '--mode' => { + description: 'Set env mode', + handler: [AsyncFunction (anonymous)] + }, + '--logLevel' => { + description: 'info | warn | error | silent', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { + '--host' => { + description: 'Specify hostname', + handler: [AsyncFunction (anonymous)] + }, + '--port' => { + description: 'Specify port', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { '--host' => [Object], '--port' => [Object] }, + parent: undefined + } + } + { + name: 'lint', + description: 'Lint project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: undefined + } + lint + Completion { + commands: Map(4) { + '' => { + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev' => { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev build' => { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: [Object] + }, + 'lint' => { + name: 'lint', + description: 'Lint project', + handler: [Function (anonymous)], + options: Map(0) {}, + parent: undefined + } + } + } + --mode Set env mode --logLevel info | warn | error | silent :4 " ❯ tests/cli.test.ts:49:24
tests/cli.test.ts > cli completion tests for citty > cli option value handling > should resolve port value correctly: tests/cli.test.ts#L58
Error: Snapshot `cli completion tests for citty > cli option value handling > should resolve port value correctly 1` mismatched - Expected + Received - "3000 Development server port + "{ + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: Map(3) { + '--config' => { + description: 'Use specified config file', + handler: [AsyncFunction (anonymous)] + }, + '--mode' => { + description: 'Set env mode', + handler: [AsyncFunction (anonymous)] + }, + '--logLevel' => { + description: 'info | warn | error | silent', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { + '--host' => { + description: 'Specify hostname', + handler: [AsyncFunction (anonymous)] + }, + '--port' => { + description: 'Specify port', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { '--host' => [Object], '--port' => [Object] }, + parent: undefined + } + } + { + name: 'lint', + description: 'Lint project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: undefined + } + lint + Completion { + commands: Map(4) { + '' => { + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev' => { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev build' => { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: [Object] + }, + 'lint' => { + name: 'lint', + description: 'Lint project', + handler: [Function (anonymous)], + options: Map(0) {}, + parent: undefined + } + } + } + 3000 Development server port + 8080 Alternative port + :4 " ❯ tests/cli.test.ts:58:22
tests/cli.test.ts > cli completion tests for citty > cli option value handling > should handle conflicting options appropriately: tests/cli.test.ts#L64
Error: Snapshot `cli completion tests for citty > cli option value handling > should handle conflicting options appropriately 1` mismatched - Expected + Received - "--mode Set env mode + "{ + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: Map(3) { + '--config' => { + description: 'Use specified config file', + handler: [AsyncFunction (anonymous)] + }, + '--mode' => { + description: 'Set env mode', + handler: [AsyncFunction (anonymous)] + }, + '--logLevel' => { + description: 'info | warn | error | silent', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { + '--host' => { + description: 'Specify hostname', + handler: [AsyncFunction (anonymous)] + }, + '--port' => { + description: 'Specify port', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { '--host' => [Object], '--port' => [Object] }, + parent: undefined + } + } + { + name: 'lint', + description: 'Lint project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: undefined + } + lint + Completion { + commands: Map(4) { + '' => { + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev' => { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev build' => { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: [Object] + }, + 'lint' => { + name: 'lint', + description: 'Lint project', + handler: [Function (anonymous)], + options: Map(0) {}, + parent: undefined + } + } + } + --mode Set env mode --logLevel info | warn | error | silent :4 " ❯ tests/cli.test.ts:64:22
tests/cli.test.ts > cli completion tests for citty > cli option value handling > should resolve config option values correctly: tests/cli.test.ts#L70
Error: Snapshot `cli completion tests for citty > cli option value handling > should resolve config option values correctly 1` mismatched - Expected + Received - "vite.config.js - vite.config.ts + "{ + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: Map(3) { + '--config' => { + description: 'Use specified config file', + handler: [AsyncFunction (anonymous)] + }, + '--mode' => { + description: 'Set env mode', + handler: [AsyncFunction (anonymous)] + }, + '--logLevel' => { + description: 'info | warn | error | silent', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { + '--host' => { + description: 'Specify hostname', + handler: [AsyncFunction (anonymous)] + }, + '--port' => { + description: 'Specify port', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { '--host' => [Object], '--port' => [Object] }, + parent: undefined + } + } + { + name: 'lint', + description: 'Lint project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: undefined + } + lint + Completion { + commands: Map(4) { + '' => { + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev' => { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev build' => { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: [Object] + }, + 'lint' => { + name: 'lint', + description: 'Lint project', + handler: [Function (anonymous)], + options: Map(0) {}, + parent: undefined + } + } + } + dev Start dev server + lint Lint project + :4 " ❯ tests/cli.test.ts:70:22
tests/cli.test.ts > cli completion tests for citty > cli option value handling > should handle unknown options with no completions: tests/cli.test.ts#L76
Error: Snapshot `cli completion tests for citty > cli option value handling > should handle unknown options with no completions 1` mismatched - Expected + Received - "" + "{ + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: Map(3) { + '--config' => { + description: 'Use specified config file', + handler: [AsyncFunction (anonymous)] + }, + '--mode' => { + description: 'Set env mode', + handler: [AsyncFunction (anonymous)] + }, + '--logLevel' => { + description: 'info | warn | error | silent', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { + '--host' => { + description: 'Specify hostname', + handler: [AsyncFunction (anonymous)] + }, + '--port' => { + description: 'Specify port', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { '--host' => [Object], '--port' => [Object] }, + parent: undefined + } + } + { + name: 'lint', + description: 'Lint project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: undefined + } + lint + Completion { + commands: Map(4) { + '' => { + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev' => { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev build' => { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: [Object] + }, + 'lint' => { + name: 'lint', + description: 'Lint project', + handler: [Function (anonymous)], + options: Map(0) {}, + parent: undefined + } + } + } + :4" ❯ tests/cli.test.ts:76:29
tests/cli.test.ts > cli completion tests for citty > edge case completions for end with space > should suggest port values if user ends with space after `--port`: tests/cli.test.ts#L85
Error: Snapshot `cli completion tests for citty > edge case completions for end with space > should suggest port values if user ends with space after `--port` 1` mismatched - Expected + Received - "3000 Development server port + "{ + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: Map(3) { + '--config' => { + description: 'Use specified config file', + handler: [AsyncFunction (anonymous)] + }, + '--mode' => { + description: 'Set env mode', + handler: [AsyncFunction (anonymous)] + }, + '--logLevel' => { + description: 'info | warn | error | silent', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { + '--host' => { + description: 'Specify hostname', + handler: [AsyncFunction (anonymous)] + }, + '--port' => { + description: 'Specify port', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { '--host' => [Object], '--port' => [Object] }, + parent: undefined + } + } + { + name: 'lint', + description: 'Lint project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: undefined + } + lint + Completion { + commands: Map(4) { + '' => { + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev' => { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev build' => { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: [Object] + }, + 'lint' => { + name: 'lint', + description: 'Lint project', + handler: [Function (anonymous)], + options: Map(0) {}, + parent: undefined + } + } + } + 3000 Development server port 8080 Alternative port + :4 " ❯ tests/cli.test.ts:85:22
tests/cli.test.ts > cli completion tests for citty > edge case completions for end with space > should keep suggesting the --port option if user typed partial but didn't end with space: tests/cli.test.ts#L91
Error: Snapshot `cli completion tests for citty > edge case completions for end with space > should keep suggesting the --port option if user typed partial but didn't end with space 1` mismatched - Expected + Received - "--port Specify port + "{ + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: Map(3) { + '--config' => { + description: 'Use specified config file', + handler: [AsyncFunction (anonymous)] + }, + '--mode' => { + description: 'Set env mode', + handler: [AsyncFunction (anonymous)] + }, + '--logLevel' => { + description: 'info | warn | error | silent', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { + '--host' => { + description: 'Specify hostname', + handler: [AsyncFunction (anonymous)] + }, + '--port' => { + description: 'Specify port', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { '--host' => [Object], '--port' => [Object] }, + parent: undefined + } + } + { + name: 'lint', + description: 'Lint project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: undefined + } + lint + Completion { + commands: Map(4) { + '' => { + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev' => { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev build' => { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: [Object] + }, + 'lint' => { + name: 'lint', + description: 'Lint project', + handler: [Function (anonymous)], + options: Map(0) {}, + parent: undefined + } + } + } + --port Specify port + :4 " ❯ tests/cli.test.ts:91:22
tests/cli.test.ts > cli completion tests for citty > edge case completions for end with space > should suggest port values if user typed `--port=` and hasn't typed a space or value yet: tests/cli.test.ts#L97
Error: Snapshot `cli completion tests for citty > edge case completions for end with space > should suggest port values if user typed `--port=` and hasn't typed a space or value yet 1` mismatched - Expected + Received - "3000 Development server port + "{ + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: Map(3) { + '--config' => { + description: 'Use specified config file', + handler: [AsyncFunction (anonymous)] + }, + '--mode' => { + description: 'Set env mode', + handler: [AsyncFunction (anonymous)] + }, + '--logLevel' => { + description: 'info | warn | error | silent', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { + '--host' => { + description: 'Specify hostname', + handler: [AsyncFunction (anonymous)] + }, + '--port' => { + description: 'Specify port', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { '--host' => [Object], '--port' => [Object] }, + parent: undefined + } + } + { + name: 'lint', + description: 'Lint project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: undefined + } + lint + Completion { + commands: Map(4) { + '' => { + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev' => { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev build' => { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: [Object] + }, + 'lint' => { + name: 'lint', + description: 'Lint project', + handler: [Function (anonymous)], + options: Map(0) {}, + parent: undefined + } + } + } + 3000 Development server port 8080 Alternative port :4 " ❯ tests/cli.test.ts:97:22
Tests (ubuntu-latest)
The job was canceled because "macos-latest" failed.
tests/cli.test.ts > cli completion tests for citty > should complete cli options: tests/cli.test.ts#L23
Error: Snapshot `cli completion tests for citty > should complete cli options 1` mismatched - Expected + Received - "dev - devbuild + "{ + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: Map(3) { + '--config' => { + description: 'Use specified config file', + handler: [AsyncFunction (anonymous)] + }, + '--mode' => { + description: 'Set env mode', + handler: [AsyncFunction (anonymous)] + }, + '--logLevel' => { + description: 'info | warn | error | silent', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { + '--host' => { + description: 'Specify hostname', + handler: [AsyncFunction (anonymous)] + }, + '--port' => { + description: 'Specify port', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { '--host' => [Object], '--port' => [Object] }, + parent: undefined + } + } + { + name: 'lint', + description: 'Lint project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: undefined + } + lint + Completion { + commands: Map(4) { + '' => { + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev' => { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev build' => { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: [Object] + }, + 'lint' => { + name: 'lint', + description: 'Lint project', + handler: [Function (anonymous)], + options: Map(0) {}, + parent: undefined + } + } + } + dev Start dev server + lint Lint project + :4 " ❯ tests/cli.test.ts:23:20
tests/cli.test.ts > cli completion tests for citty > cli option completion tests > should complete option for partial input '{ partial: '--p', expected: '--port' }': tests/cli.test.ts#L34
Error: Snapshot `cli completion tests for citty > cli option completion tests > should complete option for partial input '{ partial: '--p', expected: '--port' }' 1` mismatched - Expected + Received - "--port Specify port + "{ + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: Map(3) { + '--config' => { + description: 'Use specified config file', + handler: [AsyncFunction (anonymous)] + }, + '--mode' => { + description: 'Set env mode', + handler: [AsyncFunction (anonymous)] + }, + '--logLevel' => { + description: 'info | warn | error | silent', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { + '--host' => { + description: 'Specify hostname', + handler: [AsyncFunction (anonymous)] + }, + '--port' => { + description: 'Specify port', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { '--host' => [Object], '--port' => [Object] }, + parent: undefined + } + } + { + name: 'lint', + description: 'Lint project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: undefined + } + lint + Completion { + commands: Map(4) { + '' => { + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev' => { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev build' => { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: [Object] + }, + 'lint' => { + name: 'lint', + description: 'Lint project', + handler: [Function (anonymous)], + options: Map(0) {}, + parent: undefined + } + } + } + --port Specify port + :4 " ❯ tests/cli.test.ts:34:24
tests/cli.test.ts > cli completion tests for citty > cli option exclusion tests > should not suggest already specified option '{ specified: '--config', shouldNotContain: '--config' }': tests/cli.test.ts#L49
Error: Snapshot `cli completion tests for citty > cli option exclusion tests > should not suggest already specified option '{ specified: '--config', shouldNotContain: '--config' }' 1` mismatched - Expected + Received - "--mode Set env mode + "{ + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: Map(3) { + '--config' => { + description: 'Use specified config file', + handler: [AsyncFunction (anonymous)] + }, + '--mode' => { + description: 'Set env mode', + handler: [AsyncFunction (anonymous)] + }, + '--logLevel' => { + description: 'info | warn | error | silent', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { + '--host' => { + description: 'Specify hostname', + handler: [AsyncFunction (anonymous)] + }, + '--port' => { + description: 'Specify port', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { '--host' => [Object], '--port' => [Object] }, + parent: undefined + } + } + { + name: 'lint', + description: 'Lint project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: undefined + } + lint + Completion { + commands: Map(4) { + '' => { + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev' => { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev build' => { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: [Object] + }, + 'lint' => { + name: 'lint', + description: 'Lint project', + handler: [Function (anonymous)], + options: Map(0) {}, + parent: undefined + } + } + } + --mode Set env mode --logLevel info | warn | error | silent :4 " ❯ tests/cli.test.ts:49:24
tests/cli.test.ts > cli completion tests for citty > cli option value handling > should resolve port value correctly: tests/cli.test.ts#L58
Error: Snapshot `cli completion tests for citty > cli option value handling > should resolve port value correctly 1` mismatched - Expected + Received - "3000 Development server port + "{ + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: Map(3) { + '--config' => { + description: 'Use specified config file', + handler: [AsyncFunction (anonymous)] + }, + '--mode' => { + description: 'Set env mode', + handler: [AsyncFunction (anonymous)] + }, + '--logLevel' => { + description: 'info | warn | error | silent', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { + '--host' => { + description: 'Specify hostname', + handler: [AsyncFunction (anonymous)] + }, + '--port' => { + description: 'Specify port', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { '--host' => [Object], '--port' => [Object] }, + parent: undefined + } + } + { + name: 'lint', + description: 'Lint project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: undefined + } + lint + Completion { + commands: Map(4) { + '' => { + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev' => { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev build' => { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: [Object] + }, + 'lint' => { + name: 'lint', + description: 'Lint project', + handler: [Function (anonymous)], + options: Map(0) {}, + parent: undefined + } + } + } + 3000 Development server port + 8080 Alternative port + :4 " ❯ tests/cli.test.ts:58:22
tests/cli.test.ts > cli completion tests for citty > cli option value handling > should handle conflicting options appropriately: tests/cli.test.ts#L64
Error: Snapshot `cli completion tests for citty > cli option value handling > should handle conflicting options appropriately 1` mismatched - Expected + Received - "--mode Set env mode + "{ + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: Map(3) { + '--config' => { + description: 'Use specified config file', + handler: [AsyncFunction (anonymous)] + }, + '--mode' => { + description: 'Set env mode', + handler: [AsyncFunction (anonymous)] + }, + '--logLevel' => { + description: 'info | warn | error | silent', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { + '--host' => { + description: 'Specify hostname', + handler: [AsyncFunction (anonymous)] + }, + '--port' => { + description: 'Specify port', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { '--host' => [Object], '--port' => [Object] }, + parent: undefined + } + } + { + name: 'lint', + description: 'Lint project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: undefined + } + lint + Completion { + commands: Map(4) { + '' => { + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev' => { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev build' => { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: [Object] + }, + 'lint' => { + name: 'lint', + description: 'Lint project', + handler: [Function (anonymous)], + options: Map(0) {}, + parent: undefined + } + } + } + --mode Set env mode --logLevel info | warn | error | silent :4 " ❯ tests/cli.test.ts:64:22
tests/cli.test.ts > cli completion tests for citty > cli option value handling > should resolve config option values correctly: tests/cli.test.ts#L70
Error: Snapshot `cli completion tests for citty > cli option value handling > should resolve config option values correctly 1` mismatched - Expected + Received - "vite.config.js - vite.config.ts + "{ + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: Map(3) { + '--config' => { + description: 'Use specified config file', + handler: [AsyncFunction (anonymous)] + }, + '--mode' => { + description: 'Set env mode', + handler: [AsyncFunction (anonymous)] + }, + '--logLevel' => { + description: 'info | warn | error | silent', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { + '--host' => { + description: 'Specify hostname', + handler: [AsyncFunction (anonymous)] + }, + '--port' => { + description: 'Specify port', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { '--host' => [Object], '--port' => [Object] }, + parent: undefined + } + } + { + name: 'lint', + description: 'Lint project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: undefined + } + lint + Completion { + commands: Map(4) { + '' => { + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev' => { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev build' => { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: [Object] + }, + 'lint' => { + name: 'lint', + description: 'Lint project', + handler: [Function (anonymous)], + options: Map(0) {}, + parent: undefined + } + } + } + dev Start dev server + lint Lint project + :4 " ❯ tests/cli.test.ts:70:22
tests/cli.test.ts > cli completion tests for citty > cli option value handling > should handle unknown options with no completions: tests/cli.test.ts#L76
Error: Snapshot `cli completion tests for citty > cli option value handling > should handle unknown options with no completions 1` mismatched - Expected + Received - "" + "{ + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: Map(3) { + '--config' => { + description: 'Use specified config file', + handler: [AsyncFunction (anonymous)] + }, + '--mode' => { + description: 'Set env mode', + handler: [AsyncFunction (anonymous)] + }, + '--logLevel' => { + description: 'info | warn | error | silent', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { + '--host' => { + description: 'Specify hostname', + handler: [AsyncFunction (anonymous)] + }, + '--port' => { + description: 'Specify port', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { '--host' => [Object], '--port' => [Object] }, + parent: undefined + } + } + { + name: 'lint', + description: 'Lint project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: undefined + } + lint + Completion { + commands: Map(4) { + '' => { + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev' => { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev build' => { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: [Object] + }, + 'lint' => { + name: 'lint', + description: 'Lint project', + handler: [Function (anonymous)], + options: Map(0) {}, + parent: undefined + } + } + } + :4" ❯ tests/cli.test.ts:76:29
tests/cli.test.ts > cli completion tests for citty > edge case completions for end with space > should suggest port values if user ends with space after `--port`: tests/cli.test.ts#L85
Error: Snapshot `cli completion tests for citty > edge case completions for end with space > should suggest port values if user ends with space after `--port` 1` mismatched - Expected + Received - "3000 Development server port + "{ + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: Map(3) { + '--config' => { + description: 'Use specified config file', + handler: [AsyncFunction (anonymous)] + }, + '--mode' => { + description: 'Set env mode', + handler: [AsyncFunction (anonymous)] + }, + '--logLevel' => { + description: 'info | warn | error | silent', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { + '--host' => { + description: 'Specify hostname', + handler: [AsyncFunction (anonymous)] + }, + '--port' => { + description: 'Specify port', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { '--host' => [Object], '--port' => [Object] }, + parent: undefined + } + } + { + name: 'lint', + description: 'Lint project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: undefined + } + lint + Completion { + commands: Map(4) { + '' => { + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev' => { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev build' => { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: [Object] + }, + 'lint' => { + name: 'lint', + description: 'Lint project', + handler: [Function (anonymous)], + options: Map(0) {}, + parent: undefined + } + } + } + 3000 Development server port 8080 Alternative port + :4 " ❯ tests/cli.test.ts:85:22
tests/cli.test.ts > cli completion tests for citty > edge case completions for end with space > should keep suggesting the --port option if user typed partial but didn't end with space: tests/cli.test.ts#L91
Error: Snapshot `cli completion tests for citty > edge case completions for end with space > should keep suggesting the --port option if user typed partial but didn't end with space 1` mismatched - Expected + Received - "--port Specify port + "{ + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: Map(3) { + '--config' => { + description: 'Use specified config file', + handler: [AsyncFunction (anonymous)] + }, + '--mode' => { + description: 'Set env mode', + handler: [AsyncFunction (anonymous)] + }, + '--logLevel' => { + description: 'info | warn | error | silent', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { + '--host' => { + description: 'Specify hostname', + handler: [AsyncFunction (anonymous)] + }, + '--port' => { + description: 'Specify port', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { '--host' => [Object], '--port' => [Object] }, + parent: undefined + } + } + { + name: 'lint', + description: 'Lint project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: undefined + } + lint + Completion { + commands: Map(4) { + '' => { + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev' => { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev build' => { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: [Object] + }, + 'lint' => { + name: 'lint', + description: 'Lint project', + handler: [Function (anonymous)], + options: Map(0) {}, + parent: undefined + } + } + } + --port Specify port + :4 " ❯ tests/cli.test.ts:91:22
tests/cli.test.ts > cli completion tests for citty > edge case completions for end with space > should suggest port values if user typed `--port=` and hasn't typed a space or value yet: tests/cli.test.ts#L97
Error: Snapshot `cli completion tests for citty > edge case completions for end with space > should suggest port values if user typed `--port=` and hasn't typed a space or value yet 1` mismatched - Expected + Received - "3000 Development server port + "{ + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: Map(3) { + '--config' => { + description: 'Use specified config file', + handler: [AsyncFunction (anonymous)] + }, + '--mode' => { + description: 'Set env mode', + handler: [AsyncFunction (anonymous)] + }, + '--logLevel' => { + description: 'info | warn | error | silent', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { + '--host' => { + description: 'Specify hostname', + handler: [AsyncFunction (anonymous)] + }, + '--port' => { + description: 'Specify port', + handler: [AsyncFunction (anonymous)] + } + }, + parent: undefined + } + { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: Map(2) { '--host' => [Object], '--port' => [Object] }, + parent: undefined + } + } + { + name: 'lint', + description: 'Lint project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: undefined + } + lint + Completion { + commands: Map(4) { + '' => { + name: '', + description: 'Vite CLI tool', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev' => { + name: 'dev', + description: 'Start dev server', + handler: [AsyncFunction (anonymous)], + options: [Map], + parent: undefined + }, + 'dev build' => { + name: 'dev build', + description: 'Build project', + handler: [AsyncFunction (anonymous)], + options: Map(0) {}, + parent: [Object] + }, + 'lint' => { + name: 'lint', + description: 'Lint project', + handler: [Function (anonymous)], + options: Map(0) {}, + parent: undefined + } + } + } + 3000 Development server port 8080 Alternative port :4 " ❯ tests/cli.test.ts:97:22
Tests (windows-latest)
The job was canceled because "macos-latest" failed.
Tests (windows-latest)
The operation was canceled.
Type Check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636