From ec873b9de0069e1e03308e78092b871817185b56 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Sun, 28 Apr 2024 23:31:07 +0300 Subject: [PATCH] feature: changelog-io: escover -> c8 --- .madrun.js | 10 ++-------- lib/changelog.js | 4 +--- lib/changelog.spec.js | 6 ------ package.json | 5 +---- 4 files changed, 4 insertions(+), 21 deletions(-) diff --git a/.madrun.js b/.madrun.js index e84e67e..2a8af96 100644 --- a/.madrun.js +++ b/.madrun.js @@ -2,16 +2,10 @@ import { run, cutEnv, } from 'madrun'; -import {SKIPED} from 'supertape/exit-codes'; - -const env = { - ESCOVER_SUCCESS_EXIT_CODE: SKIPED, - SUPERTAPE_CHECK_SKIPED: 1, -}; export default { - 'test': () => [env, `escover tape 'test/**/*.js' 'lib/**/*.spec.js'`], - 'coverage': async () => [env, await cutEnv('test')], + 'test': () => `tape 'test/**/*.js' 'lib/**/*.spec.js'`, + 'coverage': async () => `c8 ${await cutEnv('test')}`, 'inspect': async () => [env, `node-inspect lib/changelog.spec.js`], 'lint': () => 'putout .', 'fresh:lint': () => run('lint', '--fresh'), diff --git a/lib/changelog.js b/lib/changelog.js index 314e523..f8ada85 100644 --- a/lib/changelog.js +++ b/lib/changelog.js @@ -15,7 +15,7 @@ const parseOverrides = (overrides = {}) => { shortdate, execSync, readPackageUpSync, - } + }; }; export default (versionNew, overrides) => { @@ -72,8 +72,6 @@ export default (versionNew, overrides) => { } } - console.log(data); - if (!data) throw Error(`No new 'feature' and 'fix' commits from ${version}`); diff --git a/lib/changelog.spec.js b/lib/changelog.spec.js index 5d10005..e223552 100644 --- a/lib/changelog.spec.js +++ b/lib/changelog.spec.js @@ -144,9 +144,3 @@ test('changelog: no fix, no feature', (t) => { t.end(); }); -test('changelog: no fix, no feature: no overrides', (t) => { - const [error] = tryCatch(changelog); - - t.match(error.message, `No new 'feature' and 'fix' commits from v`); - t.end(); -}); diff --git a/package.json b/package.json index e87dcb6..14a3a6e 100644 --- a/package.json +++ b/package.json @@ -12,9 +12,7 @@ "type": "git", "url": "git://github.com/coderaiser/changelog-io.git" }, - "keywords": [ - "changelog" - ], + "keywords": ["changelog"], "scripts": { "test": "madrun test", "coverage": "madrun coverage", @@ -43,7 +41,6 @@ "license": "MIT", "devDependencies": { "c8": "^9.1.0", - "escover": "^4.1.0", "eslint": "^8.3.0", "eslint-plugin-n": "^17.3.1", "eslint-plugin-putout": "^22.3.1",