Vue Bug Description When running very basic tests usingvitest, if a component importsFullCalendarthen the test fails with Error:Cannotfindmodule'.../node_modules/@fullcalendar/vue3/dist/FullCalendar'importedfrom'.../node_modules/@fullcalendar/vue3/dist/index.js' ...
Contributor ocavue commented Apr 10, 2023 Describe the bug After updating vitest to 0.30.0, running tsc --noEmit will raise the following errors: node_modules/@vitest/runner/dist/utils.d.ts:5:29 - error TS2307: Cannot find module '@vitest/utils/diff' or its corresponding type declarati...
支持Vue、React、Lit 等框架 测试用例支持HMR,运行速度快 (jest需要通过快捷键P,过滤后来运行指定测试文件) 开箱即用的 TypeScript / JSX 支持 ESM first, top level await 多线程支持(tinypool) jest 友好 通过c8输出测试用例覆盖 配置简单 日志信息很清爽 好了,废话不多说,开干(例子基于vite react-ts -> r...
vue-tsc requires vue-tsc package 你还可以将路径传递到自定义二进制文件或命令名称,该路径会产生与 tsc --noEmit --pretty false 相同的输出。 typecheck.include 类型: string[] 默认值: ['**/*.{test,spec}-d.?(c|m)[jt]s?(x)'] ...
import { config, shallowMount, mount } from '@vue/test-utils'; import UsersIndex from '../../resources/js/Pages/Users/Index.vue'; vi.mock('@inertiajs/inertia-vue3',() => ({ __esModule: true, ...vi.importActual('@inertiajs/inertia-vue3'), // Keep the rest of Inertia unto...
TypeError: vue.createApp is not a function ❯ Object.<anonymous> ../../path-of-a-linked-dependency So I ran yarn unlink [my-dependency] and yarn install --force, and the issue was solved. It may have been a problem on top of the others, as I kept all the previous workarounds...
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Error: Cannot find module 'vuex/package.json' Require stack: - D:\project\uni-vitest-bug-repo\node_modules\.pnpm\@dcloudio+uni-cli-shared@3.0.0-4020420240722002_postcss@8.4.41_rollup@4.21.0_vue@3.4.38_typescript@4.9.5_\node_modules\@d...
import { resolve } from 'path'; import { defineConfig } from 'vitest/config'; import { viteRequire } from 'vite-require'; import svgLoader from 'vite-svg-loader'; import vue from '@vitejs/plugin-vue'; const r = (p: string) => resolve(__dirname, p); export default defineConfig...
vue-tsc requires vue-tsc packageYou can also pass down a path to custom binary or command name that produces the same output as tsc --noEmit --pretty false.typecheck.includeType: string[] Default: ['**/*.{test,spec}-d.?(c|m)[jt]s?(x)']Glob...
TestingLibraryElementError: Unable to find an element with the text: Hello. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible. ...