def karma(ctx, travis=False):
    """Run JS tests with Karma. Requires Chrome to be installed."""
    if travis:
        return ctx.run('yarn test-travis', echo=True)
    ctx.run('yarn test', echo=True)