Skip to content

TypeScript setup: move tsconfig.json to nightwatch/tsconfig.json #33

@beatfactor

Description

@beatfactor

If setting up Nightwatch in an existing TS project, we need to create the tsconfig.json file that Nightwatch will use inside the nightwatch folder, in the project root.

The nightwatch folder will host other nightwatch related items. The structure will look like so:

nightwatch/
  |--  examples/
  |--  pages/
  |--  commands/  
  |--  assertions/
  |--  globals.ts
  |--  tsconfig.json

Since v2.3, the Nightwatch runner will automatically register ts-node using the nightwatch/tsconfig.json config file which will make it possible to run .ts files without tsc. See https://github.com/nightwatchjs/nightwatch/blob/main/bin/runner.js#L9

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions