Comments (9)
Puppeteer 就是控制浏览器,主要用来写集成测试,jest-electron-runner 可以在浏览器环境里面运行单测。
from blog-comments.
其实 jest 可以用 https://github.com/facebook-atom/jest-electron-runner 这个轮子跑真实浏览器环境,但 只支持 chromium,一般的单测应该是够了。
from blog-comments.
@devrsi0n 这个与 puppeteer 相比有什么优劣势?要跑真实环境很多时候是要测浏览器特性的东西,只有 chromium 不太够。
from blog-comments.
有些错误,npm install
没有 --dev
参数,应该是 npm install --save-dev
或 npm install -D
from blog-comments.
@liuyib 感谢指正。从 yarn 复制过去没改好。
from blog-comments.
我这边照着搭,但是发现 src 源码里有 import ,运行起来会
'Module build failed (from ./node_modules/istanbul-instrumenter-loader/dist/cjs.js):
from blog-comments.
大哥,你能贴上你的 karma, karma-webpack,node ,ts-loader 的版本么,不胜感激。
看起来 karma-webpack 配合 webpack 5 翻译ts会爆很奇怪的错误,我看了很多 issue,但是没有帮助。
from blog-comments.
@everlose 我之前在这个项目中配过 https://github.com/crimx/get-selection-more
from blog-comments.
感谢楼主。提醒大家,webpack5 和 karma-webpack5 的配合太令人头痛了,它卡了我三天,找了很多 issue 都解决不了。建议都降版本。
npm install karma-webpack@4 webpack@4 ts-loader@7
from blog-comments.
Related Issues (20)
- 2018/11/25/v8-fast-properties/ HOT 1
- /2017/03/09/get-all-images-in-dom-including-background-en/ HOT 4
- /2019/04/18/搭建-gatsby-博客一:为什么选-gatsby/ HOT 7
- /2017/07/15/element-onresize/ HOT 1
- /2017/04/06/position-and-drag-iframe-en/ HOT 13
- /2020/06/30/如何测试-react-并发模式安全/ HOT 1
- /2020/02/26/rxjs-hooks-and-suspense-the-ultimate-guide/ HOT 1
- /2019/10/21/实现一个有趣的-rxjs-operator/ HOT 1
- about HOT 21
- /2020/01/16/typescript-集合转换为交集/ HOT 1
- /2019/06/06/javascript-音频变速保持音调/ HOT 2
- /2019/05/05/搭建-gatsby-博客四:兼容 Jekyll 式路径/ HOT 1
- /2018/09/24/be-a-commitizen/ HOT 1
- /2018/06/22/select-cursor-word/ HOT 2
- /2017/07/06/manachers-algorithm/ HOT 2
- /2019/05/13/搭建-gatsby-博客五:实现草稿模式和上下篇/ HOT 6
- /2019/04/26/搭建-gatsby-博客三:使用-netlify-cms-管理文章/ HOT 3
- /2019/07/01/arch-linux-使用-iptables-管理网络/ HOT 3
- /2019/09/22/真·复用组件-react-hooks-结合-rxjs-封装异步逻辑/ HOT 4
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 blog-comments.