Could store all the different data (todo lists, individual todos) you might use for your tests in a file call mock-data.js or something, then export them as an object, would make you code much more readable.
100% agree, the tests would be much more readable if they didn't have big objects being defined inside them. Also, you could reuse the same test objects for different tests.
Could store all the different data (todo lists, individual todos) you might use for your tests in a file call mock-data.js or something, then export them as an object, would make you code much more readable.