Skip to content
This repository was archived by the owner on May 12, 2024. It is now read-only.

Commit 634ad6b

Browse files
committed
fix tests & update packages
1 parent de632aa commit 634ad6b

File tree

7 files changed

+35
-21
lines changed

7 files changed

+35
-21
lines changed

bun.lockb

4.11 KB
Binary file not shown.

components.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/* eslint-disable */
2-
/* prettier-ignore */
32
// @ts-nocheck
43
// Generated by unplugin-vue-components
54
// Read more: https://github.com/vuejs/core/pull/3399
65
export {}
76

7+
/* prettier-ignore */
88
declare module 'vue' {
99
export interface GlobalComponents {
1010
Avatar: typeof import('primevue/avatar')['default']
@@ -22,7 +22,6 @@ declare module 'vue' {
2222
MainTitle: typeof import('./src/components/MainTitle/MainTitle.vue')['default']
2323
Message: typeof import('primevue/message')['default']
2424
OverlayPanel: typeof import('primevue/overlaypanel')['default']
25-
Password: typeof import('primevue/password')['default']
2625
ProgressSpinner: typeof import('primevue/progressspinner')['default']
2726
RenderErrors: typeof import('./src/components/RenderErrors/RenderErrors.vue')['default']
2827
RouterLink: typeof import('vue-router')['RouterLink']

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,34 +16,34 @@
1616
"coverage": "bun run test:unit --coverage"
1717
},
1818
"dependencies": {
19-
"axios": "^1.6.8",
20-
"pinia": "^2.1.7",
19+
"axios": "^1.7.0-beta.1",
20+
"pinia": "^2.1.8-beta.0",
2121
"primeflex": "^3.3.1",
2222
"primeicons": "^7.0.0",
2323
"primevue": "^3.52.0",
24-
"vue": "^3.4.23",
24+
"vue": "^3.4.27",
2525
"vue-router": "^4.3.2"
2626
},
2727
"devDependencies": {
28-
"@biomejs/biome": "^1.7.1",
28+
"@biomejs/biome": "^1.7.3",
2929
"@mojojoejo/vite-plugin-purgecss": "^1.1.0",
3030
"@tsconfig/node20": "^20.1.4",
3131
"@types/bun": "latest",
3232
"@types/jsdom": "^21.1.6",
33-
"@types/node": "^20.12.7",
33+
"@types/node": "^20.12.11",
3434
"@vitejs/plugin-vue": "^5.0.4",
35-
"@vitest/coverage-v8": "^1.5.3",
36-
"@vue/test-utils": "^2.4.5",
35+
"@vitest/coverage-v8": "^1.6.0",
36+
"@vue/test-utils": "^2.4.6",
3737
"@vue/tsconfig": "^0.5.1",
3838
"jsdom": "^24.0.0",
3939
"npm-run-all2": "^6.1.2",
4040
"prettier": "^4.0.0-alpha.8",
41-
"sass": "^1.75.0",
41+
"sass": "^1.77.0",
4242
"typescript": "^5.4.5",
43-
"unplugin-vue-components": "^0.26.0",
44-
"vite": "^5.2.10",
45-
"vite-plugin-vue-devtools": "^7.1.2",
46-
"vitest": "^1.5.3",
47-
"vue-tsc": "^2.0.15"
43+
"unplugin-vue-components": "^0.27.0",
44+
"vite": "^5.2.11",
45+
"vite-plugin-vue-devtools": "^7.1.3",
46+
"vitest": "^2.0.0-beta.2",
47+
"vue-tsc": "^2.0.17"
4848
}
4949
}
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
import { mount } from '@vue/test-utils'
22
import { describe, expect, it } from 'vitest'
33

4-
import NotificationsButton from './CartButton.vue'
4+
import CartButton from './CartButton.vue'
5+
import { plugins } from '@/tests/plugins'
56

67
describe('NotificationsButton', () => {
78
it('renders properly', () => {
8-
const wrapper = mount(NotificationsButton, {})
9+
const wrapper = mount(CartButton, {
10+
global: {
11+
plugins
12+
}
13+
})
914

10-
expect(wrapper.text()).toContain('Уведомления')
15+
expect(wrapper.exists()).toBe(true)
1116
})
1217
})

src/layout/Header/NotificationsButton/NotificationsButton.spec.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@ import { mount } from '@vue/test-utils'
22
import { describe, expect, it } from 'vitest'
33

44
import NotificationsButton from './NotificationsButton.vue'
5+
import { plugins } from '@/tests/plugins'
56

67
describe('NotificationsButton', () => {
78
it('renders properly', () => {
8-
const wrapper = mount(NotificationsButton, {})
9+
const wrapper = mount(NotificationsButton, {
10+
global: {
11+
plugins
12+
}
13+
})
914

1015
expect(wrapper.text()).toContain('Уведомления')
1116
})

src/views/home/HomeView/HomeView.spec.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@ import { describe, expect, it } from 'vitest'
33
import { mount } from '@vue/test-utils'
44

55
import HomeView from './HomeView.vue'
6+
import { plugins } from '@/tests/plugins'
67

78
describe('HomeView', () => {
89
it('renders properly', () => {
9-
const wrapper = mount(HomeView)
10+
const wrapper = mount(HomeView, {
11+
global: {
12+
plugins
13+
}
14+
})
1015

1116
expect(wrapper.text()).toContain('Новости')
1217
})

src/views/team/TeamsView/TeamsView.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ describe('TeamsView', () => {
1313
}
1414
})
1515

16-
expect(wrapper.text()).toContain('Турниры')
16+
expect(wrapper.text()).toContain('Команды')
1717
})
1818
})

0 commit comments

Comments
 (0)