-
Notifications
You must be signed in to change notification settings - Fork 61
Description
after
- cloning this repo
- attempting to follow README.md for setup instructions
- running
npx wdio
i get this error
`% npx wdio
Execution of 4 workers started at 2023-11-20T12:20:41.708Z
2023-11-20T12:20:41.718Z INFO @wdio/cli:launcher: Run onPrepare hook
2023-11-20T12:20:41.719Z INFO @wdio/appium-service: Will spawn Appium process: node /Users/ivan.cheung/node-lab/mocha-wdio-appium/exercises/appium-demo/node_modules/appium/index.js --base-path /
2023-11-20T12:20:43.658Z INFO @wdio/appium-service: Appium started with ID: 20310
2023-11-20T12:20:43.660Z INFO @wdio/cli:launcher: Run onWorkerStart hook
2023-11-20T12:20:43.660Z INFO @wdio/cli:launcher: Run onWorkerStart hook
2023-11-20T12:20:43.660Z INFO @wdio/cli:launcher: Run onWorkerStart hook
2023-11-20T12:20:43.660Z INFO @wdio/cli:launcher: Run onWorkerStart hook
2023-11-20T12:20:43.661Z INFO @wdio/local-runner: Start worker 0-0 with arg:
2023-11-20T12:20:43.662Z INFO @wdio/local-runner: Start worker 0-1 with arg:
2023-11-20T12:20:43.663Z INFO @wdio/local-runner: Start worker 0-2 with arg:
2023-11-20T12:20:43.664Z INFO @wdio/local-runner: Start worker 0-3 with arg:
[0-2] Error: "ts-node/esm/transpile-only 'resolve'" did not call the next hook in its chain and did not explicitly signal a short circuit. If this is intentional, include shortCircuit: true in the hook's return.
[0-2] at new NodeError (node:internal/errors:406:5)
[0-2] at Hooks.resolve (node:internal/modules/esm/hooks:286:13)
[0-2] at MessagePort.handleMessage (node:internal/modules/esm/worker:168:18)
[0-1] Error: "ts-node/esm/transpile-only 'resolve'" did not call the next hook in its chain and did not explicitly signal a short circuit. If this is intentional, include shortCircuit: true in the hook's return.
[0-1] at new NodeError (node:internal/errors:406:5)
[0-1] at Hooks.resolve (node:internal/modules/esm/hooks:286:13)
[0-1] at MessagePort.handleMessage (node:internal/modules/esm/worker:168:18)
[0-0] Error: "ts-node/esm/transpile-only 'resolve'" did not call the next hook in its chain and did not explicitly signal a short circuit. If this is intentional, include shortCircuit: true in the hook's return.
[0-0] at new NodeError (node:internal/errors:406:5)
[0-0] at Hooks.resolve (node:internal/modules/esm/hooks:286:13)
[0-0] at MessagePort.handleMessage (node:internal/modules/esm/worker:168:18)
[0-3] Error: "ts-node/esm/transpile-only 'resolve'" did not call the next hook in its chain and did not explicitly signal a short circuit. If this is intentional, include shortCircuit: true in the hook's return.
[0-3] at new NodeError (node:internal/errors:406:5)
[0-3] at Hooks.resolve (node:internal/modules/esm/hooks:286:13)
[0-3] at MessagePort.handleMessage (node:internal/modules/esm/worker:168:18)
[0-0] FAILED
2023-11-20T12:20:43.901Z INFO @wdio/cli:launcher: Run onWorkerEnd hook
[0-1] FAILED
2023-11-20T12:20:43.901Z INFO @wdio/cli:launcher: Run onWorkerEnd hook
[0-2] FAILED
2023-11-20T12:20:43.901Z INFO @wdio/cli:launcher: Run onWorkerEnd hook
[0-3] FAILED
2023-11-20T12:20:43.901Z INFO @wdio/cli:launcher: Run onWorkerEnd hook
2023-11-20T12:20:43.901Z INFO @wdio/cli:launcher: Run onComplete hook
2023-11-20T12:20:43.902Z INFO @wdio/appium-service: Appium (pid: 20310) killed
Spec Files: 0 passed, 4 failed, 4 total (100% completed) in 00:00:02
2023-11-20T12:20:43.902Z INFO @wdio/local-runner: Shutting down spawned worker
2023-11-20T12:20:44.154Z INFO @wdio/local-runner: Waiting for 0 to shut down gracefully
2023-11-20T12:20:44.155Z INFO @wdio/local-runner: shutting down`
it's after I added these two packages:
npm i -D typescript ts-node
then this is solved and the test runs
perhaps need to fix this in packages.json?
thanks