Files
cypress/packages/server/test/support/watch
T
Zach Bloomquist 17c9ded463 Improve server test scripts (#6567)
* clean up server test commands

this mostly restores the pre-yarn behavior:
- passing a file path to a test command runs that file, not all tests
- there is only one test-watch
- there is a "test" command which accepts a pathx

* allow run.js to specify multiple specfiles

* simplify e2e test setup by using globbing

* fix e2e test that has been broken for eternity

* still let users use `test-e2e --spec` syntax

* update server README
2020-02-26 15:53:43 -05:00

11 lines
171 B
Bash
Executable File

#!/usr/bin/env bash
CMD="$1"
ARGS="$2"
npm run --silent $CMD $ARGS & \
chokidar 'test/**/*' 'lib/**/*' \
-c "yarn --silent $CMD $ARGS" \
--polling \
--poll-interval=250