mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 17:45:22 +00:00
This adds a testRender() helper function to simplify UI tests. Instead of mocking the redux store, we use the real thing.
11 lines
288 B
TypeScript
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 } });
|
|
});
|