Skip to content

chore: remove snapshot tests #3

chore: remove snapshot tests

chore: remove snapshot tests #3

Triggered via push July 20, 2024 07:50
Status Failure
Total duration 1m 20s
Billable time 6m
Artifacts

ci.yml

on: push
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

4 errors
tests/e2e/cli-commands.test.ts > CLI Commands > should generate markdown file with default options: tests/e2e/cli-commands.test.ts#L27
Error: Command failed: pnpm exec esno D:\a\CodeWhisper\CodeWhisper\cli.js generate -p "D:\a\CodeWhisper\CodeWhisper\tests\fixtures\test-project" -o "D:\a\CodeWhisper\CodeWhisper\tests\fixtures\test-project\output.md" -g "D:\a\CodeWhisper\CodeWhisper\tests\fixtures\test-project\.gitignore" ❯ tests/e2e/cli-commands.test.ts:27:7 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 1, signal: null, output: [ null, null, null ], pid: 6664, stdout: null, stderr: null }
tests/integration/markdown-generation.test.ts > Markdown Generation Integration > should use custom template when provided: tests/integration/markdown-generation.test.ts#L106
AssertionError: expected '# Custom Template: Test Project\r\n\r…' to contain '```typescript\nconsole.log("Hello, Wo…' - Expected + Received - ```typescript - console.log("Hello, World!"); - ``` + # Custom Template: Test Project + + ## Project Overview + + This project contains 2 file(s). + + ## File Listing + + ### src/index.ts + + - **Language:** typescript + - **Size:** 100 bytes + - **Last Modified:** Mon Jan 02 2023 00:00:00 GMT+0000 (Coordinated Universal Time) + + #### Content Preview: + + ```typescript + console.log("Hello, World!"); + ``` + + --- + ### README.md + + - **Language:** markdown + - **Size:** 50 bytes + - **Last Modified:** Sun Jan 01 2023 00:00:00 GMT+0000 (Coordinated Universal Time) + + #### Content Preview: + + ```markdown + # Project README + ``` + + --- + + ## Custom Data + + Custom data provided: + - title: Test Project + - version: 1.0.0 + ❯ tests/integration/markdown-generation.test.ts:106:40
tests/unit/file-processor.test.ts > processFiles > should use cache for unchanged files: tests/unit/file-processor.test.ts#L184
AssertionError: expected 2 to be 3 // Object.is equality - Expected + Received - 3 + 2 ❯ tests/unit/file-processor.test.ts:184:27
test (lts/*, windows-latest)
Process completed with exit code 1.