Update GH actions to only install necessary dependencies

Only install dependencies required for hosting, not cloud functions
This commit is contained in:
2021-09-01 20:05:38 +01:00
parent 26c7861ee5
commit 1bb0788570
6 changed files with 50 additions and 9 deletions

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

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

5
src/setupTests.js 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';