Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m() {
- # mocha default path is test/mocha.opts
- file=$(readlink -f $1)
- [ -f "test/mocha.opts" ] && (mocha $file)
- [ -f "../../mocha.opts" ] && (cd ../../../ && mocha $file)
- [ -f "../../../mocha.opts" ] && (cd ../../../../ && mocha $file)
- [ -f "../../../../mocha.opts" ] && (cd ../../../../../ && mocha $file)
- [ -f "../../../../../mocha.opts" ] && (cd ../../../../../../ && mocha $file)
- [ -f "../../../../../../mocha.opts" ] && (cd ../../../../../../../ && mocha $file)
- }
Add Comment
Please, Sign In to add comment