diff --git a/server/tests/setup.js b/server/tests/setup.js index f6c3925..fbc688f 100644 --- a/server/tests/setup.js +++ b/server/tests/setup.js @@ -191,7 +191,11 @@ async function createTestUser(userData = {}) { } }); - return await User.create(defaultUserData); + // Try manual UUID generation as a workaround + const { v4: uuidv4 } = require('uuid'); + const userWithId = { ...defaultUserData, id: uuidv4() }; + + return await User.create(userWithId); } /**