Merge remote-tracking branch 'origin/developmaunt' into developmaunt

This commit is contained in:
2023-04-07 12:13:16 +02:00
9 changed files with 35 additions and 8 deletions

9
src/App.test.tsx Normal file
View File

@@ -0,0 +1,9 @@
import React from 'react';
import { render, screen } from '@testing-library/react';
import App from './App';
test('Home screen contains \'MauMau\'', () => {
render(<App />);
const linkElement = screen.getByText(/MauMau/i);
expect(linkElement).toBeInTheDocument();
});

5
src/setupTests.ts Normal file
View File

@@ -0,0 +1,5 @@
// jest-dom adds custom jest matchers for asserting on DOM nodes.
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
import '@testing-library/jest-dom';