invalid componentPath
Closed this issue · 1 comments
ryanzhu95 commented
文件结构如下:
目录: D:\homework\SoftwareTesting\wxapp_xpu-master\components
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 2021/5/6 21:25 138 index.js
-a---- 2021/5/7 1:11 691 index.test.js
-a---- 2021/5/6 21:24 68 index.wxml
-a---- 2021/5/6 21:25 58 index.wxss
测试文件出错位置
test('index', () => {
const id = simulate.load('/components/index')
会报错invalid componentPath: /components/index,但是我尝试改过很多次路径了都没有用,请问是哪里出问题了么
ryanzhu95 commented
哈哈教训就是,别看网上教程,必须有component.json文件