gl-react/tests/test.sh
Gaëtan Renaudeau 4600bcedd0 initial release
2016-12-02 10:55:17 +01:00

14 lines
333 B
Bash
Executable File

#!/bin/bash
cd `dirname $0`
rm -rf node_modules_to_test
mkdir node_modules_to_test
cp -R node_modules/gl-react node_modules_to_test/gl-react
rm node_modules_to_test/gl-react/package.json
echo 'module.exports=require("./src")' > node_modules_to_test/gl-react/index.js
# $1 is an opportunity to give -u
jest $1 &&
./flow/test.sh $1