I'm having a heck of a time trying to figure out how to write unit tests for my projects that rely on mysql. I want to be able to roll back my test database so I can run each test in a fresh environment but every time I try to write a simple string of commands to delete, create, populate the database so it's in a known state, I run into issues. I can't seem to get the database to create the same table after it has recently been deleted. Even if I use Promises to mitigate syncranousness of JS the table just refuses to be recreated.Any ideas on how to best setup for unit testing db code?
-- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/c144cc5e-a853-47e2-9cf5-9c013b7fd008%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
