Skip to content

Fixing issue #86

Fixing issue #86 #2

Triggered via dynamic August 26, 2025 14:52
Status Success
Total duration 25m 54s
Artifacts 1

copilot

on: dynamic
Fit to window
Zoom out
Zoom in

Annotations

10 errors
tests/formatter.test.ts > WitFormatter > should format world declaration with imports and exports: tests/formatter.test.ts#L90
AssertionError: expected 'package foo:bar;\n\nworld test {\n …' to be 'package foo:bar;\n\nworld test {\n …' // Object.is equality - Expected + Received package foo:bar; world test { import test-interface; - export run: func(); + export run: func(); } ❯ tests/formatter.test.ts:90:27
tests/formatter.test.ts > WitFormatter > should handle type aliases: tests/formatter.test.ts#L256
AssertionError: expected 'package foo:bar;\n\ninterface test {\…' to be 'package foo:bar;\n\ninterface test {\…' // Object.is equality - Expected + Received package foo:bar; interface test { - type my-string = string; + type my-string=string; - type my-list = list<u32>; + type my-list=list<u32>; } ❯ tests/formatter.test.ts:256:27
tests/formatter.test.ts > WitFormatter > should format world declaration with imports and exports: tests/formatter.test.ts#L90
AssertionError: expected 'package foo:bar;\n\nworld test {\n …' to be 'package foo:bar;\n\nworld test {\n …' // Object.is equality - Expected + Received package foo:bar; world test { import test-interface; - export run: func(); + export run: func(); } ❯ tests/formatter.test.ts:90:27
tests/formatter.test.ts > WitFormatter > should handle type aliases: tests/formatter.test.ts#L256
AssertionError: expected 'package foo:bar;\n\ninterface test {\…' to be 'package foo:bar;\n\ninterface test {\…' // Object.is equality - Expected + Received package foo:bar; interface test { - type my-string = string; + type my-string=string; - type my-list = list<u32>; + type my-list=list<u32>; } ❯ tests/formatter.test.ts:256:27
tests/formatter.test.ts > WitFormatter > should format function with parameters and return type: tests/formatter.test.ts#L170
AssertionError: expected 'package foo:bar;\n\ninterface test {\…' to be 'package foo:bar;\n\ninterface test {\…' // Object.is equality - Expected + Received package foo:bar; interface test { - complex-func: func(a: u32, b: string, c: bool) -> tuple<u32, string>; + complex-func: func(a: u32, b: string, c: bool)->tuple<u32, string>; } ❯ tests/formatter.test.ts:170:27
tests/formatter.test.ts > WitFormatter > should format interface declaration with proper indentation: tests/formatter.test.ts#L66
AssertionError: expected 'package foo:bar;\n\ninterface test {\…' to be 'package foo:bar;\n\ninterface test {\…' // Object.is equality - Expected + Received package foo:bar; interface test { f1: func(); f2: func(a: u32); - f3: func() -> u32; + f3: func()->u32; } ❯ tests/formatter.test.ts:66:27
tests/formatter.test.ts > WitFormatter > should handle type aliases: tests/formatter.test.ts#L256
AssertionError: expected 'package foo:bar;\n\ninterface test {\…' to be 'package foo:bar;\n\ninterface test {\…' // Object.is equality - Expected + Received package foo:bar; interface test { - type my-string = string; + type my-string=string; - type my-list = list<u32>; + type my-list=list<u32>; } ❯ tests/formatter.test.ts:256:27
tests/formatter.test.ts > WitFormatter > should format function with parameters and return type: tests/formatter.test.ts#L170
AssertionError: expected 'package foo:bar;\n\ninterface test {\…' to be 'package foo:bar;\n\ninterface test {\…' // Object.is equality - Expected + Received package foo:bar; interface test { - complex-func: func(a: u32, b: string, c: bool) -> tuple<u32, string>; + complex-func: func(a: u32, b: string, c: bool)->tuple<u32, string>; } ❯ tests/formatter.test.ts:170:27
tests/formatter.test.ts > WitFormatter > should format interface declaration with proper indentation: tests/formatter.test.ts#L66
AssertionError: expected 'package foo:bar;\n\ninterface test {\…' to be 'package foo:bar;\n\ninterface test {\…' // Object.is equality - Expected + Received package foo:bar; interface test { f1: func(); f2: func(a: u32); - f3: func() -> u32; + f3: func()->u32; } ❯ tests/formatter.test.ts:66:27
tests/formatter.test.ts: tests/formatter.test.ts#L2
Error: Cannot find package 'vscode' imported from '/home/runner/work/vscode-wit/vscode-wit/tests/formatter.test.ts' ❯ tests/formatter.test.ts:2:1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_MODULE_NOT_FOUND' } Caused by: Caused by: Error: Failed to load url vscode (resolved id: vscode) in /home/runner/work/vscode-wit/vscode-wit/tests/formatter.test.ts. Does the file exist? ❯ loadAndTransform node_modules/vite/dist/node/chunks/dep-Bsx9IwL8.js:26427:33

Artifacts

Produced during runtime
Name Size Digest
results Expired
2.88 KB
sha256:6fd088b5b23387f0b1641cb711e9740ff31e789c33768b1f091ee2ad90d58e29