This is a project to show how to run automated browser tests using the Nightmare framework.
- nvm - Node Version Manager, POSIX-compliant bash script to manage multiple active node.js versions
- typescript - TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.
nvm use
npm install
npm test
The tsconfig.json file customizes configures various behaviors of the TypeScript compiler:
"target": "es5"
- compile to ES5 (see docs)"module": "commonjs"
- use CommonJS modules"outDir": "out"
- put compiled JavaScript files in theout
directory (see docs)"sourceMap": true
- supports debugging (see docs)
settings.json configures VSCode to use the same TypeScript version as the project (see docs.
DefinitelyTyped is a repository of TypeScript type mappings for popular JavaScript packages. Search for your package using TypeSearch.