mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-29 04:29:41 +00:00
Remove Jest. Update dangerfile.js.
This commit is contained in:
parent
22e2fdc707
commit
29fc7910b7
@ -1,9 +1,9 @@
|
|||||||
import { message, danger } from "danger"
|
import { danger, fail } from 'danger'
|
||||||
|
|
||||||
// Add a CHANGELOG entry for app changes
|
// Check if the CHANGELOG.md file has been edited
|
||||||
const hasChangelog = includes(danger.git.modified_files, "CHANGELOG.md")
|
const changelogEdited = danger.git.modified_files.includes('CHANGELOG.md')
|
||||||
const isTrivial = contains((danger.github.pr.body + danger.github.pr.title), "#trivial")
|
|
||||||
|
|
||||||
if (!hasChangelog && !isTrivial) {
|
// Fail the build and post a comment reminding submitters to do so if it wasn't changed
|
||||||
warn("Please add a `CHANGELOG.md` entry for your changes.")
|
if (!changelogEdited) {
|
||||||
|
fail('Please include a CHANGELOG entry. You can find it at [CHANGELOG.md](CHANGELOG.md).')
|
||||||
}
|
}
|
3477
package-lock.json
generated
3477
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -44,7 +44,6 @@
|
|||||||
"grunt-stylelint": "latest",
|
"grunt-stylelint": "latest",
|
||||||
"grunt-yamllint": "latest",
|
"grunt-yamllint": "latest",
|
||||||
"http-auth": "^3.2.3",
|
"http-auth": "^3.2.3",
|
||||||
"jest": "^22.1.4",
|
|
||||||
"jshint": "^2.9.5",
|
"jshint": "^2.9.5",
|
||||||
"mocha": "^4.1.0",
|
"mocha": "^4.1.0",
|
||||||
"mocha-each": "^1.1.0",
|
"mocha-each": "^1.1.0",
|
||||||
@ -70,12 +69,5 @@
|
|||||||
"socket.io": "^2.0.4",
|
"socket.io": "^2.0.4",
|
||||||
"valid-url": "latest",
|
"valid-url": "latest",
|
||||||
"walk": "latest"
|
"walk": "latest"
|
||||||
},
|
|
||||||
"jest": {
|
|
||||||
"transform": {
|
|
||||||
"^.+\\.js$": "<rootDir>/node_modules/babel-jest"
|
|
||||||
},
|
|
||||||
"testPathIgnorePatterns": ["\\.snap$", "<rootDir>/build", "<rootDir>/node_modules/" , "<rootDir>/modules/"],
|
|
||||||
"cacheDirectory": ".jest/cache"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user