Skip to content

Commit

Permalink
Add names to changelog snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
ecraig12345 committed Aug 12, 2022
1 parent 8f6c032 commit 5cce9ae
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 83 deletions.
136 changes: 68 additions & 68 deletions src/__e2e__/__snapshots__/changelog.test.ts.snap
@@ -1,26 +1,46 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`changelog generation writeChangelog generates correct changelog 1`] = `
"# Change Log - foo
exports[`changelog generation writeChangelog generates correct changelog in monorepo with groupChanges (grouped change FILES): bar CHANGELOG.json 1`] = `
Object {
"entries": Array [
Object {
"comments": Object {
"patch": Array [
Object {
"author": "test@testtestme.com",
"comment": "comment from bar change ",
"commit": "(sha1-0)",
"package": "bar",
},
],
},
"date": "(date)",
"tag": "bar_v1.3.4",
"version": "1.3.4",
},
],
"name": "bar",
}
`;

exports[`changelog generation writeChangelog generates correct changelog in monorepo with groupChanges (grouped change FILES): bar CHANGELOG.md 1`] = `
"# Change Log - bar
This log was last generated on (date) and should not be manually modified.
<!-- Start content -->
## 1.0.0
## 1.3.4
(date)
### Patches
- comment 2 (test@testtestme.com)
- comment 1 (test@testtestme.com)
- additional comment 1 (test@testtestme.com)
- additional comment 2 (test@testtestme.com)
- comment from bar change (test@testtestme.com)
"
`;

exports[`changelog generation writeChangelog generates correct changelog 2`] = `
exports[`changelog generation writeChangelog generates correct changelog in monorepo with groupChanges (grouped change FILES): foo CHANGELOG.json 1`] = `
Object {
"entries": Array [
Object {
Expand Down Expand Up @@ -61,7 +81,7 @@ Object {
}
`;

exports[`changelog generation writeChangelog generates correct changelog in monorepo with groupChanges (grouped change FILES) 1`] = `
exports[`changelog generation writeChangelog generates correct changelog in monorepo with groupChanges (grouped change FILES): foo CHANGELOG.md 1`] = `
"# Change Log - foo
This log was last generated on (date) and should not be manually modified.
Expand All @@ -81,24 +101,27 @@ This log was last generated on (date) and should not be manually modified.
"
`;

exports[`changelog generation writeChangelog generates correct changelog in monorepo with groupChanges (grouped change FILES) 2`] = `
"# Change Log - bar
exports[`changelog generation writeChangelog generates correct changelog: changelog json 1`] = `
"# Change Log - foo
This log was last generated on (date) and should not be manually modified.
<!-- Start content -->
## 1.3.4
## 1.0.0
(date)
### Patches
- comment from bar change (test@testtestme.com)
- comment 2 (test@testtestme.com)
- comment 1 (test@testtestme.com)
- additional comment 1 (test@testtestme.com)
- additional comment 2 (test@testtestme.com)
"
`;

exports[`changelog generation writeChangelog generates correct changelog in monorepo with groupChanges (grouped change FILES) 3`] = `
exports[`changelog generation writeChangelog generates correct changelog: changelog md 1`] = `
Object {
"entries": Array [
Object {
Expand Down Expand Up @@ -139,103 +162,79 @@ Object {
}
`;

exports[`changelog generation writeChangelog generates correct changelog in monorepo with groupChanges (grouped change FILES) 4`] = `
Object {
"entries": Array [
Object {
"comments": Object {
"patch": Array [
Object {
"author": "test@testtestme.com",
"comment": "comment from bar change ",
"commit": "(sha1-0)",
"package": "bar",
},
],
},
"date": "(date)",
"tag": "bar_v1.3.4",
"version": "1.3.4",
},
],
"name": "bar",
}
`;

exports[`changelog generation writeChangelog generates correct grouped changelog 1`] = `
"# Change Log - foo
exports[`changelog generation writeChangelog generates correct grouped changelog when grouped change log is saved to the same dir as a regular changelog 1`] = `
"# Change Log - bar
This log was last generated on (date) and should not be manually modified.
<!-- Start content -->
## 1.0.0
## 1.3.4
(date)
### Patches
- comment 1 (test@testtestme.com)
- comment 2 (test@testtestme.com)
"
`;

exports[`changelog generation writeChangelog generates correct grouped changelog 2`] = `
"# Change Log - bar
exports[`changelog generation writeChangelog generates correct grouped changelog when grouped change log is saved to the same dir as a regular changelog 2`] = `
"# Change Log - foo
This log was last generated on (date) and should not be manually modified.
<!-- Start content -->
## 1.3.4
## 1.0.0
(date)
### Patches
- comment 3 (test@testtestme.com)
- comment 2 (test@testtestme.com)
- \`bar\`
- comment 2 (test@testtestme.com)
- \`foo\`
- comment 1 (test@testtestme.com)
"
`;

exports[`changelog generation writeChangelog generates correct grouped changelog 3`] = `
"# Change Log - foo
exports[`changelog generation writeChangelog generates correct grouped changelog: bar CHANGELOG.md 1`] = `
"# Change Log - bar
This log was last generated on (date) and should not be manually modified.
<!-- Start content -->
## 1.0.0
## 1.3.4
(date)
### Patches
- \`bar\`
- comment 3 (test@testtestme.com)
- comment 2 (test@testtestme.com)
- \`foo\`
- comment 1 (test@testtestme.com)
- comment 3 (test@testtestme.com)
- comment 2 (test@testtestme.com)
"
`;

exports[`changelog generation writeChangelog generates correct grouped changelog when grouped change log is saved to the same dir as a regular changelog 1`] = `
"# Change Log - bar
exports[`changelog generation writeChangelog generates correct grouped changelog: foo CHANGELOG.md 1`] = `
"# Change Log - foo
This log was last generated on (date) and should not be manually modified.
<!-- Start content -->
## 1.3.4
## 1.0.0
(date)
### Patches
- comment 2 (test@testtestme.com)
- comment 1 (test@testtestme.com)
"
`;

exports[`changelog generation writeChangelog generates correct grouped changelog when grouped change log is saved to the same dir as a regular changelog 2`] = `
exports[`changelog generation writeChangelog generates correct grouped changelog: grouped CHANGELOG.md 1`] = `
"# Change Log - foo
This log was last generated on (date) and should not be manually modified.
Expand All @@ -249,13 +248,14 @@ This log was last generated on (date) and should not be manually modified.
### Patches
- \`bar\`
- comment 3 (test@testtestme.com)
- comment 2 (test@testtestme.com)
- \`foo\`
- comment 1 (test@testtestme.com)
"
`;

exports[`changelog generation writeChangelog generates grouped changelog without dependent change entries 1`] = `
exports[`changelog generation writeChangelog generates grouped changelog without dependent change entries where packages have normal changes and dependency changes: bar CHANGELOG.md 1`] = `
"# Change Log - bar
This log was last generated on (date) and should not be manually modified.
Expand All @@ -268,11 +268,12 @@ This log was last generated on (date) and should not be manually modified.
### Patches
- comment 1 (test@testtestme.com)
- Bump baz to v1.3.4
"
`;

exports[`changelog generation writeChangelog generates grouped changelog without dependent change entries 2`] = `
exports[`changelog generation writeChangelog generates grouped changelog without dependent change entries where packages have normal changes and dependency changes: baz CHANGELOG.md 1`] = `
"# Change Log - baz
This log was last generated on (date) and should not be manually modified.
Expand All @@ -289,7 +290,7 @@ This log was last generated on (date) and should not be manually modified.
"
`;

exports[`changelog generation writeChangelog generates grouped changelog without dependent change entries 3`] = `
exports[`changelog generation writeChangelog generates grouped changelog without dependent change entries where packages have normal changes and dependency changes: grouped CHANGELOG.md 1`] = `
"# Change Log - foo
This log was last generated on (date) and should not be manually modified.
Expand All @@ -302,12 +303,14 @@ This log was last generated on (date) and should not be manually modified.
### Patches
- \`bar\`
- comment 1 (test@testtestme.com)
- \`baz\`
- comment 1 (test@testtestme.com)
"
`;

exports[`changelog generation writeChangelog generates grouped changelog without dependent change entries where packages have normal changes and dependency changes 1`] = `
exports[`changelog generation writeChangelog generates grouped changelog without dependent change entries: bar CHANGELOG.md 1`] = `
"# Change Log - bar
This log was last generated on (date) and should not be manually modified.
Expand All @@ -320,12 +323,11 @@ This log was last generated on (date) and should not be manually modified.
### Patches
- comment 1 (test@testtestme.com)
- Bump baz to v1.3.4
"
`;

exports[`changelog generation writeChangelog generates grouped changelog without dependent change entries where packages have normal changes and dependency changes 2`] = `
exports[`changelog generation writeChangelog generates grouped changelog without dependent change entries: baz CHANGELOG.md 1`] = `
"# Change Log - baz
This log was last generated on (date) and should not be manually modified.
Expand All @@ -342,7 +344,7 @@ This log was last generated on (date) and should not be manually modified.
"
`;

exports[`changelog generation writeChangelog generates grouped changelog without dependent change entries where packages have normal changes and dependency changes 3`] = `
exports[`changelog generation writeChangelog generates grouped changelog without dependent change entries: grouped CHANGELOG.md 1`] = `
"# Change Log - foo
This log was last generated on (date) and should not be manually modified.
Expand All @@ -355,8 +357,6 @@ This log was last generated on (date) and should not be manually modified.
### Patches
- \`bar\`
- comment 1 (test@testtestme.com)
- \`baz\`
- comment 1 (test@testtestme.com)
"
Expand Down

0 comments on commit 5cce9ae

Please sign in to comment.