generated from xqsit94/vite-vue3-ts-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(pages): home page should display a counter card (#2)
* home page should display a counter card * e.. t la pièce jointe ! * update imports * rename import
- Loading branch information
Showing
11 changed files
with
27 additions
and
21 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Empty file.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/components/counter-card.component.vue → src/components/counter-card.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...components/counter-card.component.spec.ts → tests/components/counter-card.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { describe, it, expect } from 'vitest' | ||
|
||
import { shallowMount } from '@vue/test-utils' | ||
import { createPinia, setActivePinia } from 'pinia' | ||
import HomePage from '@/pages/home-page.vue' | ||
import CounterCard from '@/components/counter-card.vue' | ||
|
||
describe('Home page', () => { | ||
it('should display a counter card', () => { | ||
setActivePinia(createPinia()) | ||
const wrapper = shallowMount(HomePage) | ||
const counterCard = wrapper.findComponent(CounterCard) | ||
|
||
expect(counterCard.exists()).toBe(true) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters