code-corps / code-corps/code-corps-ember

Stripe is putting out console warnings in tests

未关闭
#1,403 2 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
Difficulty: Medium Priority: Low Skill: JavaScript Skill: Stripe Skill: Testing Time: 2 hours
主要语言
JavaScript
星标
120
派生
75
PR 合并指标
30 天内没有已合并 PR

描述

# Problem

A bunch of our tests, when executed, output a `console.warn` into the terminal, with

```
You may test your Stripe.js integration over HTTP. However, live Stripe.js integrations must use HTTPS.
```

This pollutes the test output, which

- makes it more difficult to see which test failed when executing `ember-exam`
- makes it more difficult to see why and which tests failed on circle
- implies our tests may be contacting the stripe API, which possibly should not have to happen

We should

- identify where the warning is being called
- figure out if it's due to contacting the stripe API
- figure out how to either avoid, or, if not possible, squelch it

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。