Commit 237962f7 authored by Nick Sellen's avatar Nick Sellen

Add js lint/test commands to scripts

parent bac374b9
Pipeline #24909468 failed with stages
in 8 minutes and 28 seconds
......@@ -69,5 +69,11 @@
"browserslist": [
"> 0.5%",
"ie_mob >=11"
]
],
"standard": {
"ignore": [
"dist",
"test/_compiled.js"
]
}
}
......@@ -44,6 +44,19 @@ services:
FS_ENV: test
REDIS_HOST: redis
# webpack client javascript
#------------------------------------
client:
container_name: foodsharing_test_client
image: node:9
# We don't run anything long running in here yet - build is run via ./scripts/build-assets
command: 'true'
working_dir: /app/client
user: "${UID}"
volumes:
- ../:/app
# php mail queue runner
#------------------------------------
......
......@@ -97,4 +97,9 @@ SECONDS=0
run-in-container chat npm test
echo $SECONDS seconds elapsed
log-header "Running client js tests"
SECONDS=0
run-in-container client 'yarn && yarn lint && yarn test'
echo $SECONDS seconds elapsed
log-header "Done!"
......@@ -32,4 +32,7 @@ exec-in-container app vendor/bin/codecept run "$@"
echo "Running chat tests"
run-in-container chat npm test
echo "Running client js tests"
run-in-container client 'yarn && yarn lint && yarn test'
echo "Done!"
#!/bin/bash
export FS_ENV=test
set -e
. $(dirname "$0")/inc.sh
echo "Running client js tests"
run-in-container client 'yarn && yarn lint && yarn test'
echo "Done!"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment