Open siida36 opened 1 year ago
さきほどCopyrightのテストを修正していたらなぜか通りました。わからん。。。
>>> yarn run cy:run-ct
yarn run v1.22.15
$ cypress run-ct
[@cypress/webpack-dev-server]: removing HtmlWebpackPlugin from configuration.
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
====================================================================================================
(Run Starting)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Cypress: 9.7.0 │
│ Browser: Electron 100 (headless) │
│ Node Version: v16.13.1 (/usr/local/bin/node) │
│ Specs: 1 found (components/App/App.spec.js) │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
────────────────────────────────────────────────────────────────────────────────────────────────────
Running: components/App/App.spec.js (1 of 1)
webpack compiled successfully
App
✓ renders sauna marker (668ms)
✓ renders marker popup (1329ms)
App render an alert when backend geocoding returns not found
✓ renders not found popup (783ms)
Copyright
✓ should display the correct copyright (79ms)
4 passing (3s)
(Results)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Tests: 4 │
│ Passing: 4 │
│ Failing: 0 │
│ Pending: 0 │
│ Skipped: 0 │
│ Screenshots: 0 │
│ Video: true │
│ Duration: 2 seconds │
│ Spec Ran: components/App/App.spec.js │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
====================================================================================================
(Run Finished)
Spec Tests Passing Failing Pending Skipped
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ ✔ components/App/App.spec.js 00:02 4 4 - - - │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
✔ All specs passed! 00:02 4 4 - - -
✨ Done in 13.20s.
コードを一切変更せずに連打していてもテストに通る時とエラーが発生する時の2パターンに遭遇します。 タイムアウトの秒数を長めに持てばエラーが発生しないかもしれません。
実行環境
発生したエラー