Skip to content

Commit

Permalink
Upgrade deps. Fix mocha config. Prettier.
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Mar 15, 2020
1 parent 7a322a2 commit c67a57c
Show file tree
Hide file tree
Showing 7 changed files with 154 additions and 85 deletions.
4 changes: 0 additions & 4 deletions .mocha.opts

This file was deleted.

3 changes: 3 additions & 0 deletions .mocharc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
require: "source-map-support/register"
slow: 7000
timeout: 20000
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ This module follows semver.
- 🐞 Backwards-compatible bug fixes
- 📦 Minor packaging changes

## v1.3.2

- 📦 Upgrade all deps, migrate mocha opts

## v1.3.1

- 📦 Upgrade all deps
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
**Easy access to your version and build metadata from within
[Node.js](https://nodejs.org/)**

[![Become a sponsor](https://img.shields.io/badge/Become%20a-sponsor-orange)](https://github.com/users/mceachen/sponsorship)
[![npm version](https://img.shields.io/npm/v/mkver.svg)](https://www.npmjs.com/package/mkver)
[![Build Status](https://travis-ci.org/photostructure/mkver.svg?branch=master)](https://travis-ci.org/photostructure/mkver)
[![Build status](https://ci.appveyor.com/api/projects/status/6kw1acvoeuw02d4g/branch/master?svg=true)](https://ci.appveyor.com/project/mceachen/mkver/branch/master)
Expand Down
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"prettier": "prettier --write src/*.ts bin/mkver",
"pretest": "del-cli dist && tsc",
"test": "mocha --opts .mocha.opts"
"test": "mocha dist/**/*.spec.js"
},
"bin": "bin/mkver",
"repository": {
Expand All @@ -23,17 +23,18 @@
},
"homepage": "https://github.com/photostructure/mkver#readme",
"devDependencies": {
"@types/chai": "^4.2.7",
"@types/mocha": "^5.2.7",
"@types/node": "^13.1.2",
"@types/chai": "^4.2.11",
"@types/mocha": "^7.0.2",
"@types/node": "^13.9.1",
"@types/semver": "^7.1.0",
"chai": "^4.2.0",
"del-cli": "^3.0.0",
"mocha": "^6.2.2",
"mocha": "^7.1.0",
"prettier": "^1.19.1",
"semver": "^7.1.1",
"semver": "^7.1.3",
"source-map-support": "^0.5.16",
"tempy": "^0.3.0",
"typescript": "^3.7.4"
"tempy": "^0.5.0",
"typescript": "^3.8.3"
},
"dependencies": {}
}
13 changes: 4 additions & 9 deletions src/mkver.spec.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
import { expect } from "chai"
import { execSync, fork } from "child_process"
import { writeFileSync } from "fs"
import { version } from "process"
import * as semver from "semver"
import { directory } from "tempy"

import { ymdhms } from "./mkver"

const semver = require("semver")

describe("mkver", () => {
before(function() {
this.retries(2)
})
describe("mkver", function() {
this.retries(2)

it("./ver.js", async () => {
const { gitSha, dir } = mkTestRepo()
Expand All @@ -21,7 +16,7 @@ describe("mkver", () => {
if (semver.satisfies(process.version, ">=10.12.0")) {
it("./testdir/version.js", async () => {
const { gitSha, dir } = mkTestRepo()
return assertResult(gitSha, dir + "/testdir/version.js")
return assertResult(gitSha, dir + "/testdir/version.js")
})
}
})
Expand Down
Loading

0 comments on commit c67a57c

Please sign in to comment.