Untuck tests out of __tests__ directories, colocate with program files

This commit is contained in:
Alex Gleason
2023-10-02 14:27:40 -05:00
parent 645ce60a5f
commit 3f640e9797
160 changed files with 223 additions and 681 deletions

View File

@@ -1,7 +1,7 @@
import { renderHook, act } from '@testing-library/react-hooks';
import { listener, mockDisconnect } from '../__mocks__/resize-observer';
import { useDimensions } from '../useDimensions';
import { listener, mockDisconnect } from './__mocks__/resize-observer';
import { useDimensions } from './useDimensions';
describe('useDimensions()', () => {
beforeEach(() => {

View File

@@ -3,7 +3,7 @@ import { buildAccount, buildGroup, buildGroupRelationship } from 'soapbox/jest/f
import { renderHook, waitFor } from 'soapbox/jest/test-helpers';
import { normalizeInstance } from 'soapbox/normalizers';
import { useGroupsPath } from '../useGroupsPath';
import { useGroupsPath } from './useGroupsPath';
describe('useGroupsPath()', () => {
test('without the groupsDiscovery feature', () => {