Skip to content
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

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

Open
sharesies-amy opened this issue Jun 29, 2023 · 1 comment
Open

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

sharesies-amy opened this issue Jun 29, 2023 · 1 comment

Comments

@sharesies-amy
Copy link

sharesies-amy commented Jun 29, 2023

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 16.15.0
  • VS Code

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

@chadlwilson
Copy link
Contributor

Possibly need to raise this at https://github.com/BugDiver/gauge-ts ?

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

2 participants