Hi all,
So I just finished the first cut of a library called ectypes.js. It lets you define types of test data to use in tests with any persistence strategy you want to set up. The strategy bit means you can use its approach whether you use MongoDB, MySQL, Redis, or hand roll your own model structures that are saved to file.
I've mentioned it to a few Javascripters and they've been a bit puzzled about it. It's a fairly common practice in the Ruby world (where factory_girl and machinist do the same thing).
Anyway, let me know if you have suggestions or feedback about it.
Cheers,
Nicholas