Skip to content

Commit

Permalink
feature: changelog-io: escover -> c8
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Apr 28, 2024
1 parent b50a1fb commit ec873b9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 21 deletions.
10 changes: 2 additions & 8 deletions .madrun.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
4 changes: 1 addition & 3 deletions lib/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const parseOverrides = (overrides = {}) => {
shortdate,
execSync,
readPackageUpSync,
}
};
};

export default (versionNew, overrides) => {
Expand Down Expand Up @@ -72,8 +72,6 @@ export default (versionNew, overrides) => {
}
}

console.log(data);

if (!data)
throw Error(`No new 'feature' and 'fix' commits from ${version}`);

Expand Down
6 changes: 0 additions & 6 deletions lib/changelog.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit ec873b9

Please sign in to comment.