Skip to content

Commit

Permalink
salita -u. Mocha 6.0.0 requires a new config file.
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Feb 20, 2019
1 parent 9a044b8 commit 29afc8f
Show file tree
Hide file tree
Showing 5 changed files with 953 additions and 187 deletions.
4 changes: 0 additions & 4 deletions .mocha.opts

This file was deleted.

5 changes: 5 additions & 0 deletions .mocharc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
spec: dist/**/*.spec.js
slow: 1000
timeout: 30000


10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ vendored versions of ExifTool match the version they vendor.

## Version history

### v8.1.0

- ✨ Added support for EXIF dates that include both the UTC offset as well as the
time zone abbreviation, like `2014:07:17 08:46:27-07:00 DST`. The TZA is
actually an overspecification, and can be safely discarded.
- 🌱 ExifTool upgraded to
[v11.27](https://www.sno.phy.queensu.ca/~phil/exiftool/history.html#v11.27).
- 📦 Updated dependencies
- 📦 Mocha 6.0.0 broke `mocha.opts`, switched to `.mocharc.yaml`

### v8.0.0

Note that this release supports structures. The value associated to `struct`
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"mktags": "node dist/update/mktags.js",
"prettier": "prettier --write src/*.ts src/**/*.ts",
"pretest": "yarn compile",
"test": "nyc mocha --opts .mocha.opts",
"test": "nyc mocha",

This comment has been minimized.

Copy link
@plroebuck

plroebuck Feb 21, 2019

Per Mocha's documentation, it looks for "mocha.opts" (not ".mocha.opts").

This comment has been minimized.

Copy link
@mceachen

mceachen Feb 21, 2019

Author Member

Thanks for looking at this diff. My test script specifies a filename that isn't the default.

This line worked in mocha 5.2, and didn't work in mocha 6.

This comment has been minimized.

Copy link
@plroebuck

plroebuck Feb 21, 2019

What does this output?

$ DEBUG=mocha:* mocha --opts .mocha.opts

This comment has been minimized.

"report": "yarn test && nyc report -r html",
"docs:1": "typedoc --options .typedoc.js",
"docs:2": "echo exiftool-vendored.js.org > docs/CNAME",
Expand Down Expand Up @@ -65,26 +65,26 @@
"devDependencies": {
"@types/chai": "^4.1.7",
"@types/chai-as-promised": "^7.1.0",
"@types/fs-extra": "^5.0.4",
"@types/fs-extra": "^5.0.5",
"@types/globule": "^1.1.3",
"@types/luxon": "^1.10.3",
"@types/mocha": "^5.2.5",
"@types/node": "^10.12.23",
"@types/luxon": "^1.11.1",
"@types/mocha": "^5.2.6",
"@types/node": "^11.9.4",
"@types/pify": "^3.0.2",
"@types/progress": "^2.0.3",
"@types/rimraf": "^2.0.2",
"@types/tar-fs": "^1.16.1",
"@types/tmp": "^0.0.33",
"@types/tmp": "^0.0.34",
"@types/xmldom": "^0.1.29",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"cp-file": "^6.0.0",
"decompress-zip": "^0.3.1",
"fs-extra": "^7.0.1",
"globule": "^1.2.1",
"mocha": "^5.2.0",
"mocha": "^6.0.0",
"npm-run-all": "^4.1.5",
"nyc": "^13.2.0",
"nyc": "^13.3.0",
"pify": "^4.0.1",
"prettier": "^1.16.4",
"progress": "^2.0.3",
Expand All @@ -100,11 +100,11 @@
},
"dependencies": {
"batch-cluster": "^5.0.1",
"luxon": "^1.11.1",
"luxon": "^1.11.3",
"tz-lookup": "^6.1.8"
},
"optionalDependencies": {
"exiftool-vendored.exe": "11.26.0",
"exiftool-vendored.pl": "11.26.0"
"exiftool-vendored.exe": "11.27.0",
"exiftool-vendored.pl": "11.27.0"
}
}
Loading

0 comments on commit 29afc8f

Please sign in to comment.