Skip to content

fix: only unit test asserts stale scaffolding content and always fails #46

@t0kubetsu

Description

@t0kubetsu

Problem

src/__tests__/App.spec.js is the only unit test in the project and it always fails:

FAIL  src/__tests__/App.spec.js > App > mounts renders properly
AssertionError: expected '' to contain 'You did it!'

The test was generated by the Vue CLI scaffold and checks for 'You did it!', text that existed in the default App.vue template but was removed when the application was built out. The test was never updated to reflect the actual component.

Expected

The test should verify real application behaviour — at minimum that App.vue mounts without errors and renders the router outlet.

Impact

The test suite always reports one failure, masking any signal from vitest. It also means the project has effectively zero automated unit-test coverage.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtesting

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions