From cc7bfa24af9fbaf21b60109796d7573efa0e8fc9 Mon Sep 17 00:00:00 2001 From: Albin Henriksson <albhe428@student.liu.se> Date: Fri, 19 Feb 2021 08:52:54 +0100 Subject: [PATCH] Issue/6 improve testing coverage for client --- client/package.json | 7 +++++++ client/src/App.test.tsx | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/client/package.json b/client/package.json index 7382e3ea..deacb7c4 100644 --- a/client/package.json +++ b/client/package.json @@ -52,5 +52,12 @@ "last 1 safari version" ] }, + "jest": { + "collectCoverageFrom": [ + "src/**/*.{js,jsx,tsx,ts}", + "!src/index.tsx", + "!src/reportWebVitals.ts" + ] + }, "proxy": "http://localhost:5000/api/" } diff --git a/client/src/App.test.tsx b/client/src/App.test.tsx index 3a7a8cc5..fac51bb8 100644 --- a/client/src/App.test.tsx +++ b/client/src/App.test.tsx @@ -1,5 +1,5 @@ -import React from 'react' import { render, screen } from '@testing-library/react' +import React from 'react' import App from './App' test('renders learn react link', () => { -- GitLab