typescript - Vue Test Utils Expression 产生了一个过于复杂而无法表示的联合类型
问题描述
shallowMount
我在 typescript 中使用from创建了一个非常简单的测试@vue/test-utils
,它向我显示警告声音Expression produces a union type that is too complex to represent.
(看图)。不知道它是什么?
import { shallowMount } from '@vue/test-utils'
import Login from '@/views/Account/Login.vue'
describe('Login Page Test', () => {
it('renders input for email', () => {
const wrapper = shallowMount(Login)
expect(wrapper.find("input"))
})
})
警告 捕获 警告
解决方案
推荐阅读
- python - 无法完成 Tkinter 的代码。请检查以下代码以获取密码
- javascript - HTML5 Canvas Color Picker Bug - 选择新颜色时,笔画历史数组中所有对象的颜色属性会立即更新
- latex - 使用 Latex 创建 Wifi 信号条
- ubuntu - 当我启动他时,Tmux 会启用第二个监视器。我怎样才能让它不这样做?
- angular - 如何隐藏页脚对齐网格的 ag 网格标题?
- reactjs - 以编程方式显示 react-autosuggest 的建议
- python - 当 X 轴是 Pandas 中的日期月份时,如何为 matplotlib 编辑 X 轴?
- flutter - RangeError(索引):无效值:有效值范围为空:0 在尝试从存储中获取 url 时颤动
- c - 如何使用 scanf() 获取整个句子作为输入
- c - waitpid() 失败:没有这样的文件或目录