You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While setting up Nightwatch in the typescript project, if the user uses the nightwatch.conf.ts or global.ts file and defined types in those files, nightwatch will fail to run the tests.
Steps to reproduce
Use npm init nightwatch@latest <project-name> to setup a new typescript project.
nightwatch.conf.ts issue
Rename nightwatch.conf.js in the root of the project to nightwatch.conf.ts.
Add const sampleVariable: string = 'some value'; statement at the top of the nightwatch.conf.ts file (to add TypeScript syntax to the file.
Run the tests using npx nightwatch command.
globals.ts issue
Add a file named globals.ts inside the nightwatch directory with the following content:
Description of the bug/issue
While setting up Nightwatch in the typescript project, if the user uses the
nightwatch.conf.ts
orglobal.ts
file and defined types in those files, nightwatch will fail to run the tests.Steps to reproduce
Use
npm init nightwatch@latest <project-name>
to setup a new typescript project.nightwatch.conf.ts issue
nightwatch.conf.js
in the root of the project tonightwatch.conf.ts
.const sampleVariable: string = 'some value';
statement at the top of thenightwatch.conf.ts
file (to add TypeScript syntax to the file.npx nightwatch
command.globals.ts issue
globals.ts
inside thenightwatch
directory with the following content:globals_path
config innightwatch.conf.js
to 'nightwatch/globals.ts'.npx nightwatch
command.Command to run
The text was updated successfully, but these errors were encountered: