TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Complete FE testing in 2019?

3 点作者 eshlomo超过 6 年前
Complex front end app, canvas components, spa, stores, reactivity, etc.

2 条评论

arenaninja超过 6 年前
Assuming you can mock store state and fully render your application it should be doable with puppeteer&#x2F;selenium or similar, but this would likely mean mocking out HTTP calls to return immediately or some alternative to hijack XHR calls and return a particular payload<p>It sounds pretty high burden, can you focus on testing the critical path instead?
pedro1976超过 6 年前
Definitely cypress [0]. I can&#x27;t recommend selenium based solutions if you care about execution speed and don&#x27;t care about the browser.<p>[0] <a href="https:&#x2F;&#x2F;www.cypress.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.cypress.io&#x2F;</a>