Skip to content

Commit 8ab58a3

Browse files
committed
chore: update @types/node version and adjust import path in tests
1 parent bc03fdf commit 8ab58a3

File tree

4 files changed

+64
-62
lines changed

4 files changed

+64
-62
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"@antfu/eslint-config": "^3.12.1",
6767
"@types/jsdom": "^21.1.7",
6868
"@types/markdown-it": "^14.1.2",
69-
"@types/node": "^18.19.68",
69+
"@types/node": "^22.10.2",
7070
"@vitejs/plugin-vue": "^5.2.1",
7171
"@vitejs/plugin-vue-jsx": "^4.1.1",
7272
"@vue/test-utils": "^2.4.6",

pnpm-lock.yaml

Lines changed: 60 additions & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/say-hello.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { mount } from '@vue/test-utils'
22
import { describe, expect, it, vi } from 'vitest'
3-
import SayHello from '../src/SayHello.vue'
3+
import SayHello from '../src/components/SayHello.vue'
44

55
describe('test for SayHello.vue', () => {
66
it('renders a button', () => {

vite.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ export default defineConfig({
2222
exclude: ['node_modules', 'tests', 'vite.config.ts'],
2323
}),
2424
],
25+
2526
// Vitest config.
2627
// https://github.com/vitest-dev/vitest
2728
test: {
2829
include: ['tests/**/*'],
2930
environment: 'jsdom',
3031
},
32+
3133
// Build config.
3234
// Vite Library mode, read more: https://vite.dev/guide/build.html#library-mode
3335
// https://vitejs.dev/config/#build-options

0 commit comments

Comments
 (0)