electron / fiddle

:electron: 🚀 The easiest way to get started with Electron
https://electronjs.org/fiddle
MIT License
7.46k stars 692 forks source link

test: migrate `editors-non-ideal-state` test to RTL #1627

Closed erikian closed 3 months ago

erikian commented 3 months ago

Ref: #1408.

This is easier to review one commit at a time since Github is not picking up the move across folders.

I've refactored renderNonIdealState so that we render it as JSX (<RenderNonIdealState editorMosaic={editorMosaic} />) instead of calling it as a regular function (renderNonIdealState(editorMosaic)) like we were doing.

coveralls commented 3 months ago

Coverage Status

coverage: 87.602%. remained the same when pulling 5c8cb8504ede73ef8e14b2160044d94848e2c2c2 on rtl/editors-non-ideal-state into 3228c9ce7e64401feda59e7774689b46567618bb on main.