Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Chore: Introduce integration tests #411

Merged
merged 1 commit into from
Dec 11, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ Please check the current list of open and known issues and ensure the bug has no
- TypeScript version
- TypeScript parser version
- ESLint config or rules and plugins currently enabled
As well include a small code sample that can be used to reproduce the issue.

As well include a small code sample that can be used to reproduce the issue.

## Contributing

Expand All @@ -69,6 +69,8 @@ Issues and pull requests will be triaged and responded to as quickly as possible

* `npm test` - run all linting and tests
* `npm run lint` - run all linting
* `npm run ast-alignment-tests` - run only Babylon AST alignment tests
* `npm run integration-tests` - run only integration tests

## License

Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"devDependencies": {
"babel-code-frame": "6.26.0",
"babylon": "7.0.0-beta.24",
"dedent": "^0.7.0",
"eslint": "4.10.0",
"eslint-config-eslint": "4.0.0",
"eslint-plugin-node": "5.2.1",
Expand All @@ -42,9 +43,10 @@
"eslint"
],
"scripts": {
"test": "node Makefile.js test && npm run ast-alignment-tests",
"test": "node Makefile.js test && npm run integration-tests && npm run ast-alignment-tests",
"jest": "jest",
"ast-alignment-tests": "jest --config={} ./tests/ast-alignment/spec.js",
"ast-alignment-tests": "jest --config=./tests/ast-alignment/jest.config.js",
"integration-tests": "jest --config=./tests/integration/jest.config.js",
"lint": "node Makefile.js lint",
"release": "eslint-release",
"ci-release": "eslint-ci-release",
Expand Down
5 changes: 5 additions & 0 deletions tests/ast-alignment/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"use strict";

module.exports = {
testRegex: "spec\\.js$"
};
2 changes: 2 additions & 0 deletions tests/integration/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
env:
jest: true
Loading