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

Stripe is putting out console warnings in tests

Aperta
#1,403 2 commenti 3 reazioni 0 assegnatari Vedi su GitHub
Difficulty: Medium Priority: Low Skill: JavaScript Skill: Stripe Skill: Testing Time: 2 hours
Lingua principale
JavaScript
Stelle
120
Fork
75
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

# 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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Esegui i test interessati con ember-exam e risali dal console.warn di Stripe.js attraverso la configurazione dei test e dell'integrazione. Determina se i test contattano l'API Stripe; il lavoro è completato quando l'avviso non inquina più l'output dei test, evitando la causa oppure sopprimendolo intenzionalmente quando è inevitabile.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript
Ambito
testing-qa
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
32/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.