Files
pybricks-code/src/app/App.test.tsx
T
David Lechner 6afee4b6d6 test: add testRender()
This adds a testRender() helper function to simplify UI tests. Instead
of mocking the redux store, we use the real thing.
2022-03-09 17:24:46 -06:00

11 lines
288 B
TypeScript

// SPDX-License-Identifier: MIT
// Copyright (c) 2021-2022 The Pybricks Authors
import React from 'react';
import { testRender } from '../../test';
import App from './App';
it.each([false, true])('should render', (darkMode) => {
testRender(<App />, { settings: { darkMode } });
});