Closed rub1e closed 5 years ago
DRY test fixtures:
You could put your fake data into a file called test-fixtures.js and import/require the specific pieces you need from there
test-fixtures.js
Also, take a look at https://github.com/marak/Faker.js/ (though probably overkill for this project!)
(Even if you weren't repeating the test event, you still don't want a 700-line file with the relevant code at the very bottom)
event
DRY test fixtures:
You could put your fake data into a file called
test-fixtures.js
and import/require the specific pieces you need from thereAlso, take a look at https://github.com/marak/Faker.js/ (though probably overkill for this project!)