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

Commit 627355e

Browse files
authored
Chore: Introduce integration tests (#411)
1 parent b4d22e7 commit 627355e

File tree

8 files changed

+857
-4
lines changed

8 files changed

+857
-4
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ Please check the current list of open and known issues and ensure the bug has no
5858
- TypeScript version
5959
- TypeScript parser version
6060
- ESLint config or rules and plugins currently enabled
61-
62-
As well include a small code sample that can be used to reproduce the issue.
61+
62+
As well include a small code sample that can be used to reproduce the issue.
6363

6464
## Contributing
6565

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

7070
* `npm test` - run all linting and tests
7171
* `npm run lint` - run all linting
72+
* `npm run ast-alignment-tests` - run only Babylon AST alignment tests
73+
* `npm run integration-tests` - run only integration tests
7274

7375
## License
7476

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"devDependencies": {
2121
"babel-code-frame": "6.26.0",
2222
"babylon": "7.0.0-beta.24",
23+
"dedent": "^0.7.0",
2324
"eslint": "4.10.0",
2425
"eslint-config-eslint": "4.0.0",
2526
"eslint-plugin-node": "5.2.1",
@@ -42,9 +43,10 @@
4243
"eslint"
4344
],
4445
"scripts": {
45-
"test": "node Makefile.js test && npm run ast-alignment-tests",
46+
"test": "node Makefile.js test && npm run integration-tests && npm run ast-alignment-tests",
4647
"jest": "jest",
47-
"ast-alignment-tests": "jest --config={} ./tests/ast-alignment/spec.js",
48+
"ast-alignment-tests": "jest --config=./tests/ast-alignment/jest.config.js",
49+
"integration-tests": "jest --config=./tests/integration/jest.config.js",
4850
"lint": "node Makefile.js lint",
4951
"release": "eslint-release",
5052
"ci-release": "eslint-ci-release",

tests/ast-alignment/jest.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"use strict";
2+
3+
module.exports = {
4+
testRegex: "spec\\.js$"
5+
};

tests/integration/.eslintrc.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
env:
2+
jest: true

0 commit comments

Comments
 (0)