Skip to content

Commit

Permalink
chore(core): fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHenry committed Oct 18, 2023
1 parent cc50974 commit 878a450
Showing 1 changed file with 60 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,34 +110,58 @@ describe('filterReleaseGroups()', () => {
expect(releaseGroups).toMatchInlineSnapshot(`
[
{
"changelog": false,
"name": "foo",
"projects": [
"lib-a",
],
"releaseTagPattern": "",
"version": {
"generator": "",
"generatorOptions": {},
},
},
{
"changelog": false,
"name": "bar",
"projects": [
"lib-b",
],
"releaseTagPattern": "",
"version": {
"generator": "",
"generatorOptions": {},
},
},
]
`);
expect(releaseGroupToFilteredProjects).toMatchInlineSnapshot(`
Map {
{
"changelog": false,
"name": "foo",
"projects": [
"lib-a",
],
"releaseTagPattern": "",
"version": {
"generator": "",
"generatorOptions": {},
},
} => Set {
"lib-a",
},
{
"changelog": false,
"name": "bar",
"projects": [
"lib-b",
],
"releaseTagPattern": "",
"version": {
"generator": "",
"generatorOptions": {},
},
} => Set {
"lib-b",
},
Expand Down Expand Up @@ -172,20 +196,32 @@ describe('filterReleaseGroups()', () => {
expect(releaseGroups).toMatchInlineSnapshot(`
[
{
"changelog": false,
"name": "foo",
"projects": [
"lib-a",
],
"releaseTagPattern": "",
"version": {
"generator": "",
"generatorOptions": {},
},
},
]
`);
expect(releaseGroupToFilteredProjects).toMatchInlineSnapshot(`
Map {
{
"changelog": false,
"name": "foo",
"projects": [
"lib-a",
],
"releaseTagPattern": "",
"version": {
"generator": "",
"generatorOptions": {},
},
} => Set {
"lib-a",
},
Expand All @@ -211,22 +247,34 @@ describe('filterReleaseGroups()', () => {
expect(releaseGroups).toMatchInlineSnapshot(`
[
{
"changelog": false,
"name": "__default__",
"projects": [
"lib-a",
"lib-a",
],
"releaseTagPattern": "",
"version": {
"generator": "",
"generatorOptions": {},
},
},
]
`);
expect(releaseGroupToFilteredProjects).toMatchInlineSnapshot(`
Map {
{
"changelog": false,
"name": "__default__",
"projects": [
"lib-a",
"lib-a",
],
"releaseTagPattern": "",
"version": {
"generator": "",
"generatorOptions": {},
},
} => Set {
"lib-a",
},
Expand Down Expand Up @@ -277,20 +325,32 @@ describe('filterReleaseGroups()', () => {
expect(releaseGroups).toMatchInlineSnapshot(`
[
{
"changelog": false,
"name": "foo",
"projects": [
"lib-a",
],
"releaseTagPattern": "",
"version": {
"generator": "",
"generatorOptions": {},
},
},
]
`);
expect(releaseGroupToFilteredProjects).toMatchInlineSnapshot(`
Map {
{
"changelog": false,
"name": "foo",
"projects": [
"lib-a",
],
"releaseTagPattern": "",
"version": {
"generator": "",
"generatorOptions": {},
},
} => Set {
"lib-a",
},
Expand Down

0 comments on commit 878a450

Please sign in to comment.