#!/usr/bin/env bash

echo -e "Starting core-chat-client container for TESTS! \n"

if [[ -z "$RUN_COMPONENT" ]]; then
    export RUN_COMPONENT=${1}
fi

if [[ -z "$SKIP_RUN" ]]; then # If SKIP_RUN is not set, run!

    if [[ $RUN_COMPONENT == 'test' ]]; then
        jest
    fi

    if [[ -z "$RUN_COMPONENT" ]]; then
        echo -e "No RUN_COMPONENT env var specified in an environment variable."
    fi
fi
