<commit_before>#!/bin/bash

set -e
source $(dirname $0)/00-init-env.sh

#-------------------------------------------------------------------------------
# Launch frontend tests
#-------------------------------------------------------------------------------
cd "$JHI_FOLDER_APP"
if [ -f "tsconfig.json" ]; then
    if [ -f "angular.json" ]; then
        npm test
    else # for react
        npm run test-ci
    fi
fi<commit_msg>CI: fix condition for launching npm test by default<commit_after>#!/bin/bash

set -e
source $(dirname $0)/00-init-env.sh

#-------------------------------------------------------------------------------
# Launch frontend tests
#-------------------------------------------------------------------------------
cd "$JHI_FOLDER_APP"
if [ -f "tsconfig.json" ]; then
    if [ -f "src/main/webapp/app/app.tsx" ]; then
        npm run test-ci
    else
        npm test
    fi
fi
{'fraction_non_alphanumeric': 0.44048943270300334, 'fraction_numerical': 0.006674082313681869, 'mean_word_length': 0.8672199170124482, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3511923', 'n_tokens_mistral': 241, 'n_tokens_neox': 226, 'n_words': 63}