Skip to content

Commit

Permalink
test: refactor test file structure to be compatible with coverage
Browse files Browse the repository at this point in the history
Tests should be in __tests__ folder (not __test__ or standalone),
otherwise they get incorrectly included in coverage calculations.
  • Loading branch information
voneiden committed Apr 17, 2024
1 parent a6cc25a commit 7a0252c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.test.tsx → src/__tests__/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { shallow } from 'enzyme';
import { MemoryRouter } from 'react-router';

import App from './App';
import App from '../App';

it('renders without crashing', () => {
shallow(
Expand Down

0 comments on commit 7a0252c

Please sign in to comment.