Comments (3)
在断言里面不能使用import,可以使用require。
示例:
require('../src/js/GridManager').default;
from gridmanager.
我说错了,不是断言,就是*.test.js文件中如何使用import引入需要测试的js文件,我在使用的时候一直在报import no defined
from gridmanager.
你可以看一下这个项目中的使用方式,如果按同样方式报错的话。请检查你的依赖是否安装完整。
另外你如果想了解自动化测试,可以看一下我的jTool项目,相对于GridManager,jTool的自动化测试更全面一些。
from gridmanager.
Related Issues (20)
- 覆盖或销毁表格所在的DOM后报错 HOT 6
- 被固定的列(例如 checkbox 列,固定在左侧), 可以支持配置显示状态吗 HOT 1
- vue3 HOT 1
- 关于angularjs引入GridManager报错的问题请教。且readme留的二维码已经失效了。 HOT 12
- 树形结构 子节点勾选 HOT 3
- 表格responseHandler触发时间能否在columnData配置项前触发 HOT 1
- 大哥,横向的虚拟滚动也加一下把!
- Vue中,调用renderGrid动态对表头渲染,嵌套表头只会显示一半,该如何解决
- ReferenceError: Can't find variable: NESTED_CODE_TYPE_MAP
- print没反应 HOT 4
- 关于ajaxdata...... HOT 1
- 宽度无法本地缓存
- 大哥,列宽自适应文本内容咋实现 HOT 1
- 宽度跟配置的不一致。 HOT 1
- 是否支持前端过滤
- 您好,固定列和嵌套表头能同时使用吗
- filter bug
- 树形结构的二级,添加数据后,children-state 为 false,被隐藏的原因
- 行删除,通过什么方式来实现 HOT 2
- 太奇怪了,给了名字,但是获取到的却不是给了名字的GridManager
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gridmanager.