mirror of
https://github.com/zulip/zulip.git
synced 2026-07-09 21:21:47 +08:00
This makes it more like how we do other tests. (imported from commit e7d96ad31aeed6186ef6ff1d23f8028c68762caa)
20 lines
475 B
Bash
Executable File
20 lines
475 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
cd "$(dirname "$0")"/../zerver/tests/frontend/node
|
|
|
|
STATIC_DIR=`python -c 'import os;print os.path.realpath("../../../../static")'`
|
|
|
|
export NODE_PATH=$STATIC_DIR
|
|
|
|
NODEJS=$(which nodejs || which node)
|
|
|
|
|
|
# Run all the JS scripts in our test directory. The order that the scripts run in now
|
|
# is fairly arbitrary, as they run isolated from each other, and none of them are
|
|
# particularly slow.
|
|
for js_file in *.js
|
|
do
|
|
echo $js_file
|
|
$NODEJS $js_file
|
|
done
|