Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
5.5 kB
1
Indexable
Never
new-testing env
waiting for server to start 0
OKcheck that https is not running on port 8080
OK***** test/auth
server started, running test
/Users/jwang2/zingcloud/nodejs/https/server/test/..

TypeError: invalid pattern
    at assertValidPattern (/Users/jwang2/zingcloud/nodejs/https/server/node_modules/minimatch/minimatch.js:275:11)
    at new Minimatch (/Users/jwang2/zingcloud/nodejs/https/server/node_modules/minimatch/minimatch.js:133:3)
    at setopts (/Users/jwang2/zingcloud/nodejs/https/server/node_modules/glob/common.js:114:20)
    at new Glob (/Users/jwang2/zingcloud/nodejs/https/server/node_modules/glob/glob.js:132:3)
    at Function.glob.hasMagic (/Users/jwang2/zingcloud/nodejs/https/server/node_modules/glob/glob.js:98:11)
    at lookupFiles (/Users/jwang2/zingcloud/nodejs/https/server/node_modules/mocha/lib/cli/lookup-files.js:78:14)
    at /Users/jwang2/zingcloud/nodejs/https/server/node_modules/mocha/lib/cli/collect-files.js:36:39
    at Array.reduce (<anonymous>)
    at module.exports (/Users/jwang2/zingcloud/nodejs/https/server/node_modules/mocha/lib/cli/collect-files.js:34:26)
    at parallelRun (/Users/jwang2/zingcloud/nodejs/https/server/node_modules/mocha/lib/cli/run-helpers.js:143:17)
    at exports.runMocha (/Users/jwang2/zingcloud/nodejs/https/server/node_modules/mocha/lib/cli/run-helpers.js:190:10)
    at Object.exports.handler (/Users/jwang2/zingcloud/nodejs/https/server/node_modules/mocha/lib/cli/run.js:374:11)
    at /Users/jwang2/zingcloud/nodejs/https/server/node_modules/mocha/node_modules/yargs/build/index.cjs:443:71

2022-10-05 11:45:49.65 <info> (zcserver.js:523) clean up web socket connections
2022-10-05 11:45:49.65 <info> (zcserver.js:529) clean up MQ connection
2022-10-05 11:45:49.65 <warn> (MongoClusters.js:53) Closing cluster "userDB
2022-10-05 11:45:49.65 <warn> (MongoClusters.js:53) Closing cluster "metaDB
2022-10-05 11:45:49.65 <warn> (MongoClusters.js:53) Closing cluster "mongo
2022-10-05 11:45:49.65 <warn> (MongoClusters.js:53) Closing cluster "mongo-testing
node:internal/fs/utils:345
    throw err;
    ^

Error: ENOENT: no such file or directory, open 'mocha.json'
    at Object.openSync (node:fs:585:3)
    at Object.readFileSync (node:fs:453:35)
    at [eval]:1:44
    at Script.runInThisContext (node:vm:129:12)
    at Object.runInThisContext (node:vm:305:38)
    at node:internal/process/execution:76:19
    at [eval]-wrapper:6:22
    at evalScript (node:internal/process/execution:75:60)
    at node:internal/main/eval_string:27:3 {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: 'mocha.json'
}
grep: mocha.json: No such file or directory
test failed, check mocha.json in test/auth for details
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]




unit_test env
/Users/jwang2/zingcloud/nodejs/https/server/test/..

TypeError: invalid pattern
    at assertValidPattern (/Users/jwang2/zingcloud/nodejs/https/server/node_modules/minimatch/minimatch.js:275:11)
    at new Minimatch (/Users/jwang2/zingcloud/nodejs/https/server/node_modules/minimatch/minimatch.js:133:3)
    at setopts (/Users/jwang2/zingcloud/nodejs/https/server/node_modules/glob/common.js:114:20)
    at new Glob (/Users/jwang2/zingcloud/nodejs/https/server/node_modules/glob/glob.js:132:3)
    at Function.glob.hasMagic (/Users/jwang2/zingcloud/nodejs/https/server/node_modules/glob/glob.js:98:11)
    at lookupFiles (/Users/jwang2/zingcloud/nodejs/https/server/node_modules/mocha/lib/cli/lookup-files.js:78:14)
    at /Users/jwang2/zingcloud/nodejs/https/server/node_modules/mocha/lib/cli/collect-files.js:36:39
    at Array.reduce (<anonymous>)
    at module.exports (/Users/jwang2/zingcloud/nodejs/https/server/node_modules/mocha/lib/cli/collect-files.js:34:26)
    at parallelRun (/Users/jwang2/zingcloud/nodejs/https/server/node_modules/mocha/lib/cli/run-helpers.js:143:17)
    at exports.runMocha (/Users/jwang2/zingcloud/nodejs/https/server/node_modules/mocha/lib/cli/run-helpers.js:190:10)
    at Object.exports.handler (/Users/jwang2/zingcloud/nodejs/https/server/node_modules/mocha/lib/cli/run.js:374:11)
    at /Users/jwang2/zingcloud/nodejs/https/server/node_modules/mocha/node_modules/yargs/build/index.cjs:443:71
killing server
2022-10-05 11:46:45.52 <info> (zcserver.js:523) clean up web socket connections
2022-10-05 11:46:45.52 <info> (zcserver.js:529) clean up MQ connection
2022-10-05 11:46:45.52 <warn> (MongoClusters.js:53) Closing cluster "userDB
2022-10-05 11:46:45.52 <warn> (MongoClusters.js:53) Closing cluster "metaDB
2022-10-05 11:46:45.52 <warn> (MongoClusters.js:53) Closing cluster "mongo
2022-10-05 11:46:45.52 <warn> (MongoClusters.js:53) Closing cluster "mongo-testing-01
2022-10-05 11:46:45.52 <warn> (MongoClusters.js:53) Closing cluster "mongo-testing-03
node:internal/fs/utils:345
    throw err;
    ^

Error: ENOENT: no such file or directory, open 'mocha.json'
    at Object.openSync (node:fs:585:3)
    at Object.readFileSync (node:fs:453:35)
    at [eval]:1:44
    at Script.runInThisContext (node:vm:129:12)
    at Object.runInThisContext (node:vm:305:38)
    at node:internal/process/execution:76:19
    at [eval]-wrapper:6:22
    at evalScript (node:internal/process/execution:75:60)
    at node:internal/main/eval_string:27:3 {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: 'mocha.json'
}
grep: mocha.json: No such file or directory
test failed, check mocha.json in test/auth for details
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]