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