Fix integration test (#15232)

This commit is contained in:
Etienne
2025-10-21 17:44:25 +02:00
committed by GitHub
parent 26e432d8e2
commit 245b0a014a
@@ -14,6 +14,7 @@ import { WORKSPACE_MEMBER_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev
describe('Core REST API Create One endpoint', () => {
beforeEach(async () => {
await deleteAllRecords('person');
await deleteAllRecords('company');
await makeRestAPIRequest({
method: 'post',
path: '/companies',
@@ -26,6 +27,11 @@ describe('Core REST API Create One endpoint', () => {
});
});
afterAll(async () => {
await deleteAllRecords('person');
await deleteAllRecords('company');
});
it('should create a new person', async () => {
const personCity = generateRecordName(TEST_PERSON_1_ID);
const requestBody = {