Skip to content

Commit

Permalink
Adds danger-jest to the repo
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Oct 14, 2017
1 parent 12d09d5 commit decb651
Show file tree
Hide file tree
Showing 6 changed files with 702 additions and 54 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ docs/js_ref_dsl_docs.json

types/index.d.ts
.jest/
test-results.json
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ matrix:
- yarn global add greenkeeper-lockfile@1
before_script:
- greenkeeper-lockfile-update
after_script:
- yarn run link
- danger run --verbose
after_script:
- greenkeeper-lockfile-upload
- node_js: '6'

Expand Down
3 changes: 3 additions & 0 deletions dangerfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ schedule(async () => {
import yarn from "danger-plugin-yarn"
schedule(yarn())

import jest from "danger-plugin-jest"
jest()

// Some good old-fashioned maintainance upkeep

// Ensure the danger.d.ts is always up to date inside this repo.
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"transform": {
".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"testResultsProcessor": "jest-json-reporter",
"testRegex": "(.test)\\.(ts|tsx)$",
"verbose": true,
"testPathIgnorePatterns": ["/node_modules/", "/distribution/", "/types/"],
Expand Down Expand Up @@ -72,10 +73,12 @@
"babel-preset-es2015": "7.0.0-alpha.19",
"babel-preset-stage-3": "7.0.0-alpha.19",
"babel-traverse": "7.0.0-alpha.19",
"danger-plugin-jest": "^1.0.1",
"danger-plugin-yarn": "^1.0.0",
"date-fns": "^1.28.3",
"husky": "^0.14.0",
"jest": "21",
"jest-json-reporter": "^1.2.2",
"lint-staged": "^4.0.0",
"madge": "^2.0.0",
"prettier": "^1.5.3",
Expand Down
1 change: 1 addition & 0 deletions tests.json

Large diffs are not rendered by default.

0 comments on commit decb651

Please sign in to comment.