Skip to content

Can't run Taiko tests with latest gauge-ts package #171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sharesies-amy opened this issue Jun 7, 2024 · 3 comments
Closed

Can't run Taiko tests with latest gauge-ts package #171

sharesies-amy opened this issue Jun 7, 2024 · 3 comments

Comments

@sharesies-amy
Copy link

sharesies-amy commented Jun 7, 2024

Describe the bug
Upgraded gauge-ts from 0.1.0 to 0.1.1 - when I run tests with the command yarn gauge run specs, I encounter a TypeError and the tests fail to run.

To Reproduce
Steps (or project) to reproduce the behavior:

  1. Initialise a gauge project
  2. Run the gauge command - yarn gauge run specs
  3. See error
TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received undefined

Logs

(retail-backend-py3.8) amyrowell@LIN-PF-2VEHJ7 ~/src/sharesies/taiko-end-to-end (upgrade-taiko-dependencies)$ yarn gauge run specs/core_suite.spec
Snapshots aren't enabled
node:internal/validators:120
throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
^
TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received undefined
at new NodeError (node:internal/errors:372:5)
at validateString (node:internal/validators:120:11)
at normalizeSpawnArguments (node:child_process:505:3)
at Object.spawn (node:child_process:693:13)
at Object.<anonymous> (/home/amyrowell/.gauge/plugins/ts/0.1.0/launcher.js:154:19)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) {
code: 'ERR_INVALID_ARG_TYPE'
}
Error occurred while waiting for runner process to finish.
Error : exit status 1
Error ----------------------------------

[Gauge]
Failed to start gauge API: Error occurred while waiting for runner process to finish.
Error : exit status 1

Expected behavior
I expect my spec to successfully begin running

Versions:

gauge -v
Gauge version: 1.4.1
Commit Hash: a82478a

html-report (4.2.0)
screenshot (0.1.0)
ts (0.1.0)
  • Ubuntu 20.04.6 LTS 64-bit
  • Node 20.9.0
  • VS Code

Additional context
Was also trying to upgrade typescript package from 4.0.3 and had the same issue.

@bdkha23
Copy link

bdkha23 commented Jun 11, 2024

Have the same issuse here. Any one know how to fix it?

@zabil
Copy link
Member

zabil commented Jun 11, 2024

This is an issue with node js and typescript versions used by gauge's ts plugin. This should be fixed with a new release of the typescript plugin. Some time this week

Refer #170 for more updates

@zabil
Copy link
Member

zabil commented Jun 11, 2024

This is now fixed with gauge plugin and package version 0.3.0 please upgrade and test it. Closing this for now and will re-open if you seem any more issues.

@zabil zabil closed this as completed Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants