Skip to content

Commit

Permalink
feat(actions): add ybiquitous/npm-diff-action (#1024)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Aug 2, 2021
1 parent fac5966 commit c4a6a24
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
1 change: 1 addition & 0 deletions lib/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ export async function init({ cwd = process.cwd(), logger = defaultLogger } = {})
await cmd.writePackageFile(".remarkignore");
await cmd.writePackageFile(".github", "workflows", "commitlint.yml");
await cmd.writePackageFile(".github", "workflows", "npm-audit-fix.yml");
await cmd.writePackageFile(".github", "workflows", "npm-diff.yml");
await cmd.writePackageFile(".github", "workflows", "release.yml");
await cmd.writePackageFile(".github", "workflows", "test.yml");
await cmd.writePackageFile(".husky", "commit-msg");
Expand Down
25 changes: 13 additions & 12 deletions test/init.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,19 @@ test("End-to-End via CLI", () =>
cwd: ctx.initArgs.cwd,
});
expect(stdout).toMatchInlineSnapshot(`
"=> 'package.json' was updated
=> '.editorconfig' was updated
=> '.remarkignore' was updated
=> '.github/workflows/commitlint.yml' was updated
=> '.github/workflows/npm-audit-fix.yml' was updated
=> '.github/workflows/release.yml' was updated
=> '.github/workflows/test.yml' was updated
=> '.husky/commit-msg' was updated
=> '.husky/post-commit' was updated
=> '.husky/pre-commit' was updated
"
`);
"=> 'package.json' was updated
=> '.editorconfig' was updated
=> '.remarkignore' was updated
=> '.github/workflows/commitlint.yml' was updated
=> '.github/workflows/npm-audit-fix.yml' was updated
=> '.github/workflows/npm-diff.yml' was updated
=> '.github/workflows/release.yml' was updated
=> '.github/workflows/test.yml' was updated
=> '.husky/commit-msg' was updated
=> '.husky/post-commit' was updated
=> '.husky/pre-commit' was updated
"
`);
expect(stderr).toEqual("");
}));

Expand Down

0 comments on commit c4a6a24

Please sign in to comment.