You've already forked hugo-extended
mirror of
https://github.com/jakejarvis/hugo-extended.git
synced 2025-07-03 15:46:38 -04:00
Switch to uvu for tests
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -57,7 +57,7 @@ jobs:
|
|||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: npm run mocha
|
run: npm run uvu
|
||||||
|
|
||||||
test-extended:
|
test-extended:
|
||||||
name: Node ${{ matrix.node }} on ${{ matrix.os }} (Extended)
|
name: Node ${{ matrix.node }} on ${{ matrix.os }} (Extended)
|
||||||
@ -85,7 +85,7 @@ jobs:
|
|||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: npm run mocha
|
run: npm run uvu
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
1235
package-lock.json
generated
1235
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -26,12 +26,12 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"bin-check": "^4.1.0",
|
"bin-check": "^4.1.0",
|
||||||
"eslint": "^8.4.1",
|
"eslint": "^8.4.1",
|
||||||
"mocha": "^9.1.3"
|
"uvu": "^0.5.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"mocha": "mocha",
|
"uvu": "uvu test",
|
||||||
"test": "npm run lint && npm run mocha",
|
"test": "npm run lint && npm run uvu",
|
||||||
"postinstall": "rimraf vendor && node lib/install"
|
"postinstall": "rimraf vendor && node lib/install"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
@ -1,15 +1,14 @@
|
|||||||
/* eslint-env mocha */
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const assert = require('assert').strict;
|
const assert = require('assert').strict;
|
||||||
const binCheck = require('bin-check');
|
const binCheck = require('bin-check');
|
||||||
const hugoBin = require('..');
|
const hugoBin = require('..');
|
||||||
|
const { test } = require('uvu');
|
||||||
|
|
||||||
describe('hugo-bin', () => {
|
test('should return path to binary and work', () => {
|
||||||
it('should return path to binary and work', () => {
|
|
||||||
return binCheck(hugoBin, ['version']).then(works => {
|
return binCheck(hugoBin, ['version']).then(works => {
|
||||||
assert.ok(works);
|
assert.ok(works);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
test.run();
|
||||||
|
Reference in New Issue
Block a user