Skip to content

Skip output-analytics tests #481

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/commands/analytics/output-analytics.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

describe('output-analytics', () => {
describe('format data', () => {
it('should formatDataRepo', () => {
it.skip('should formatDataRepo', () => {
const str = formatDataRepo(JSON.parse(JSON.stringify(FIXTURE)))

expect(str).toMatchInlineSnapshot(`
Expand Down Expand Up @@ -97,7 +97,7 @@
`)
})

it('should formatDataOrg', () => {
it.skip('should formatDataOrg', () => {
const str = formatDataOrg(JSON.parse(JSON.stringify(FIXTURE)))

expect(str).toMatchInlineSnapshot(`
Expand Down Expand Up @@ -191,7 +191,7 @@
const fdata = formatDataRepo(JSON.parse(JSON.stringify(FIXTURE)))
const serialized = renderMarkdown(fdata, 7, 'fake_repo')

expect(serialized).toMatchInlineSnapshot(`

Check failure on line 194 in src/commands/analytics/output-analytics.test.ts

View workflow job for this annotation

GitHub Actions / Tests / Test (22, ubuntu-latest)

src/commands/analytics/output-analytics.test.ts > output-analytics > format markdown > should renderMarkdown for repo

Error: Snapshot `output-analytics > format markdown > should renderMarkdown for repo 1` mismatched - Expected + Received @@ -4,84 +4,84 @@ ## Total critical alerts | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Total high alerts | Date | Counts | | ------ | ------ | - | Apr 18 | 13 | + | Apr 19 | 13 | - | Apr 20 | 13 | + | Apr 21 | 13 | - | Apr 19 | 13 | + | Apr 20 | 13 | - | Apr 21 | 10 | + | Apr 22 | 10 | | ------ | ------ | ## Total critical alerts added to the main branch | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Total high alerts added to the main branch | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Total critical alerts prevented from the main branch | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Total high alerts prevented from the main branch | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Total medium alerts prevented from the main branch | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Total low alerts prevented from the main branch | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Top 5 alert types | Name | Counts | ❯ src/commands/analytics/output-analytics.test.ts:194:26

Check failure on line 194 in src/commands/analytics/output-analytics.test.ts

View workflow job for this annotation

GitHub Actions / Tests / Test (22, windows-latest)

src/commands/analytics/output-analytics.test.ts > output-analytics > format markdown > should renderMarkdown for repo

Error: Snapshot `output-analytics > format markdown > should renderMarkdown for repo 1` mismatched - Expected + Received @@ -4,84 +4,84 @@ ## Total critical alerts | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Total high alerts | Date | Counts | | ------ | ------ | - | Apr 18 | 13 | + | Apr 19 | 13 | - | Apr 20 | 13 | + | Apr 21 | 13 | - | Apr 19 | 13 | + | Apr 20 | 13 | - | Apr 21 | 10 | + | Apr 22 | 10 | | ------ | ------ | ## Total critical alerts added to the main branch | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Total high alerts added to the main branch | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Total critical alerts prevented from the main branch | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Total high alerts prevented from the main branch | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Total medium alerts prevented from the main branch | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Total low alerts prevented from the main branch | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Top 5 alert types | Name | Counts | ❯ src/commands/analytics/output-analytics.test.ts:194:26

Check failure on line 194 in src/commands/analytics/output-analytics.test.ts

View workflow job for this annotation

GitHub Actions / Tests / Test (23, ubuntu-latest)

src/commands/analytics/output-analytics.test.ts > output-analytics > format markdown > should renderMarkdown for repo

Error: Snapshot `output-analytics > format markdown > should renderMarkdown for repo 1` mismatched - Expected + Received @@ -4,84 +4,84 @@ ## Total critical alerts | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Total high alerts | Date | Counts | | ------ | ------ | - | Apr 18 | 13 | + | Apr 19 | 13 | - | Apr 20 | 13 | + | Apr 21 | 13 | - | Apr 19 | 13 | + | Apr 20 | 13 | - | Apr 21 | 10 | + | Apr 22 | 10 | | ------ | ------ | ## Total critical alerts added to the main branch | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Total high alerts added to the main branch | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Total critical alerts prevented from the main branch | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Total high alerts prevented from the main branch | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Total medium alerts prevented from the main branch | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Total low alerts prevented from the main branch | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Top 5 alert types | Name | Counts | ❯ src/commands/analytics/output-analytics.test.ts:194:26

Check failure on line 194 in src/commands/analytics/output-analytics.test.ts

View workflow job for this annotation

GitHub Actions / Tests / Test (23, windows-latest)

src/commands/analytics/output-analytics.test.ts > output-analytics > format markdown > should renderMarkdown for repo

Error: Snapshot `output-analytics > format markdown > should renderMarkdown for repo 1` mismatched - Expected + Received @@ -4,84 +4,84 @@ ## Total critical alerts | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Total high alerts | Date | Counts | | ------ | ------ | - | Apr 18 | 13 | + | Apr 19 | 13 | - | Apr 20 | 13 | + | Apr 21 | 13 | - | Apr 19 | 13 | + | Apr 20 | 13 | - | Apr 21 | 10 | + | Apr 22 | 10 | | ------ | ------ | ## Total critical alerts added to the main branch | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Total high alerts added to the main branch | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Total critical alerts prevented from the main branch | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Total high alerts prevented from the main branch | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Total medium alerts prevented from the main branch | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Total low alerts prevented from the main branch | Date | Counts | | ------ | ------ | - | Apr 18 | 0 | + | Apr 19 | 0 | - | Apr 20 | 0 | + | Apr 21 | 0 | - | Apr 19 | 0 | + | Apr 20 | 0 | - | Apr 21 | 0 | + | Apr 22 | 0 | | ------ | ------ | ## Top 5 alert types | Name | Counts | ❯ src/commands/analytics/output-analytics.test.ts:194:26
"# Socket Alert Analytics

These are the Socket.dev analytics for the fake_repo repo of the past 7 days
Expand Down
Loading