Skip to content

Commit be30f96

Browse files
committed
Update jest confg to only load test files ending with .test.ts/js
Remove dummy test files from non test helper/data files Closes #1296
1 parent 035c754 commit be30f96

29 files changed

+20
-68
lines changed

packages/evolution-backend/src/services/audits/auditChecks/checks/__tests__/home/testHelper.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,3 @@ export const createContextWithHome = (homeOverrides: Partial<Home> = {}, validUu
3333
household: { _uuid: uuidV4() } as unknown as Household
3434
};
3535
};
36-
37-
test('dummy', () => {
38-
// Needs at least one test in the file
39-
});

packages/evolution-backend/src/services/audits/auditChecks/checks/__tests__/household/testHelper.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,3 @@ export const createContextWithHousehold = (householdOverrides: Partial<Household
2424
interview: { _uuid: uuidV4() } as unknown as Interview
2525
};
2626
};
27-
28-
test('dummy', () => {
29-
// Needs at least one test in the file
30-
});

packages/evolution-backend/src/services/audits/auditChecks/checks/__tests__/interview/testHelper.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,3 @@ export const createContextWithInterview = (interviewOverrides: Partial<Interview
2525
interview: createMockInterview(interviewOverrides, validUuid)
2626
};
2727
};
28-
29-
test('dummy', () => {
30-
// Needs at least one test in the file
31-
});
32-

packages/evolution-backend/src/services/audits/auditChecks/checks/__tests__/journey/testHelper.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,3 @@ export const createContextWithJourney = (journeyOverrides: Partial<Journey> = {}
2929
interview: { _uuid: uuidV4() } as unknown as Interview
3030
};
3131
};
32-
33-
test('dummy', () => {
34-
// Needs at least one test in the file
35-
});

packages/evolution-backend/src/services/audits/auditChecks/checks/__tests__/person/testHelper.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,3 @@ export const createContextWithPerson = (personOverrides: Partial<Person> = {}, v
2626
interview: { _uuid: uuidV4() } as unknown as Interview
2727
};
2828
};
29-
30-
test('dummy', () => {
31-
// Needs at least one test in the file
32-
});

packages/evolution-backend/src/services/audits/auditChecks/checks/__tests__/segment/testHelper.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,3 @@ export const createContextWithSegment = (segmentOverrides: Partial<Segment> = {}
3232
interview: { _uuid: uuidV4() } as unknown as Interview
3333
};
3434
};
35-
36-
test('dummy', () => {
37-
// Needs at least one test in the file
38-
});

packages/evolution-backend/src/services/audits/auditChecks/checks/__tests__/trip/testHelper.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,3 @@ export const createContextWithTrip = (tripOverrides: Partial<Trip> = {}, validUu
3030
interview: { _uuid: uuidV4() } as unknown as Interview
3131
};
3232
};
33-
34-
test('dummy', () => {
35-
// Needs at least one test in the file
36-
});

packages/evolution-backend/src/services/audits/auditChecks/checks/__tests__/visitedPlace/testHelper.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,3 @@ export const createContextWithVisitedPlace = (visitedPlaceOverrides: Partial<Vis
3838
interview: { _uuid: uuidV4() } as unknown as Interview
3939
};
4040
};
41-
42-
test('dummy', () => {
43-
// Needs at least one test in the file
44-
});
45-

packages/evolution-frontend/src/components/inputs/__tests__/InputButton.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import React from 'react';
88
import { render, fireEvent } from '@testing-library/react';
99

10-
import { interviewAttributes } from './interviewData.test';
10+
import { interviewAttributes } from './interviewData';
1111
import InputButton from '../InputButton';
1212
import i18next from 'i18next';
1313

packages/evolution-frontend/src/components/inputs/__tests__/InputCheckbox.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { render } from '@testing-library/react';
99
import { faCrow } from '@fortawesome/free-solid-svg-icons/faCrow';
1010

1111
import { shuffle } from 'chaire-lib-common/lib/utils/RandomUtils';
12-
import { interviewAttributes } from './interviewData.test';
12+
import { interviewAttributes } from './interviewData';
1313

1414
import InputCheckbox from '../InputCheckbox';
1515
import i18next from 'i18next';

0 commit comments

Comments
 (0)