Adds before script for mocha.