У меня есть этот файл в моем приложении React, и я хотел бы написать тест для этого файла.Я пользуюсь @testing-library/react
и jest
const api = {
baseURL: 'https://localhost:3000',
users: {
userPath: '/api/.../',
registerPath: '/api/.../register/',
},
bills: {
billsPath: '/api/.../bills/',
},
transactions: {
registerPath: '/api/.../transactions/',
},
};
module.exports = api;