Skip to content
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

Add Tests for PR#3811 #3813

Conversation

rohitvinnakota-codecov
Copy link
Contributor

This PR adds tests for #3811

Commits:

  • Add unit tests for space.ts Topic implementations

Copy link
Contributor

sentry-autofix bot commented Mar 17, 2025

✅ Sentry found no issues in your recent changes ✅

Copy link

codecov bot commented Mar 17, 2025

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
4238 1 4237 2
View the top 1 failed test(s) by shortest run time
src/services/codecovAI/space.test.ts > src/services/codecovAI/space.test.ts
Stack Traces | 0s run time
Error: Transform failed with 1 error:
.../services/codecovAI/space.test.ts:166:2: ERROR: Unexpected "}"
  Plugin: vite:esbuild
  File: .../services/codecovAI/space.test.ts:166:2
  
  Unexpected "}"
  164|      mathRandomSpy.mockReturnValueOnce(0.67)
  165|      expect(_getRandomTopic()).toBeInstanceOf(TechnologyTopic)
  166|    })
     |    ^
  167|  
  168|    afterEach(() => {
  
 ❯ failureErrorWithLog .../esbuild/lib/main.js:1472:15
 ❯ .../esbuild/lib/main.js:755:50responseCallbacks.<computed> .../esbuild/lib/main.js:622:9handleIncomingPacket .../esbuild/lib/main.js:677:12Socket.readFromStdout .../esbuild/lib/main.js:600:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { __vitest_rollup_error__: { plugin: 'vite:esbuild', id: '.../services/codecovAI/space.test.ts', loc: { column: 2, file: '.../services/codecovAI/space.test.ts', length: 1, line: 166, lineText: '  })', namespace: '', suggestion: '' }, frame: '\n\u001b[33mUnexpected "}"\u001b[39m\n164|      mathRandomSpy.mockReturnValueOnce(0.67)\n165|      expect(_getRandomTopic()).toBeInstanceOf(TechnologyTopic)\n166|    })\n   |    ^\n167|  \n168|    afterEach(() => {\n' } }

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@codecov-staging
Copy link

codecov-staging bot commented Mar 17, 2025

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
3511 1 3510 2
View the top 1 failed test(s) by shortest run time
src/services/codecovAI/space.test.ts > src/services/codecovAI/space.test.ts
Stack Traces | 0s run time
Error: Transform failed with 1 error:
.../services/codecovAI/space.test.ts:166:2: ERROR: Unexpected "}"
  Plugin: vite:esbuild
  File: .../services/codecovAI/space.test.ts:166:2
  
  Unexpected "}"
  164|      mathRandomSpy.mockReturnValueOnce(0.67)
  165|      expect(_getRandomTopic()).toBeInstanceOf(TechnologyTopic)
  166|    })
     |    ^
  167|  
  168|    afterEach(() => {
  
 ❯ failureErrorWithLog .../esbuild/lib/main.js:1472:15
 ❯ .../esbuild/lib/main.js:755:50responseCallbacks.<computed> .../esbuild/lib/main.js:622:9handleIncomingPacket .../esbuild/lib/main.js:677:12Socket.readFromStdout .../esbuild/lib/main.js:600:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { __vitest_rollup_error__: { plugin: 'vite:esbuild', id: '.../services/codecovAI/space.test.ts', loc: { column: 2, file: '.../services/codecovAI/space.test.ts', length: 1, line: 166, lineText: '  })', namespace: '', suggestion: '' }, frame: '\n\u001b[33mUnexpected "}"\u001b[39m\n164|      mathRandomSpy.mockReturnValueOnce(0.67)\n165|      expect(_getRandomTopic()).toBeInstanceOf(TechnologyTopic)\n166|    })\n   |    ^\n167|  \n168|    afterEach(() => {\n' } }

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

Copy link

codecov-public-qa bot commented Mar 17, 2025

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
2247 1 2246 0
View the top 1 failed tests by shortest run time
src/services/codecovAI/space.test.ts > src/services/codecovAI/space.test.ts
Stack Traces | 0s run time
Error: Transform failed with 1 error:
.../services/codecovAI/space.test.ts:166:2: ERROR: Unexpected "}"
  Plugin: vite:esbuild
  File: .../services/codecovAI/space.test.ts:166:2
  
  Unexpected "}"
  164|      mathRandomSpy.mockReturnValueOnce(0.67)
  165|      expect(_getRandomTopic()).toBeInstanceOf(TechnologyTopic)
  166|    })
     |    ^
  167|  
  168|    afterEach(() => {
  
 ❯ failureErrorWithLog .../esbuild/lib/main.js:1472:15
 ❯ .../esbuild/lib/main.js:755:50responseCallbacks.<computed> .../esbuild/lib/main.js:622:9handleIncomingPacket .../esbuild/lib/main.js:677:12Socket.readFromStdout .../esbuild/lib/main.js:600:7

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { __vitest_rollup_error__: { plugin: 'vite:esbuild', id: '.../services/codecovAI/space.test.ts', loc: { column: 2, file: '.../services/codecovAI/space.test.ts', length: 1, line: 166, lineText: '  })', namespace: '', suggestion: '' }, frame: '\n\u001b[33mUnexpected "}"\u001b[39m\n164|      mathRandomSpy.mockReturnValueOnce(0.67)\n165|      expect(_getRandomTopic()).toBeInstanceOf(TechnologyTopic)\n166|    })\n   |    ^\n167|  \n168|    afterEach(() => {\n' } }

To view more test analytics, go to the Test Analytics Dashboard
📢 Thoughts on this report? Let us know!

### Commits:
- Enhance unit tests for space.ts with controlled random testing
### Commits:
- Enhance unit tests for space.ts with improved randomness testing
- Enhance unit tests for space.ts with improved randomness testing
- Enhance unit tests for space.ts with improved randomness testing
- Enhance unit tests for space.ts with improved randomness testing
- Enhance unit tests for space.ts with improved randomness testing
### Commits:
- Enhance unit tests for space.ts with improved randomness testing
- Enhance unit tests for space.ts with improved randomness testing
- Enhance unit tests for space.ts with improved randomness testing
- Enhance unit tests for space.ts with improved randomness testing
- Enhance unit tests for space.ts with improved randomness testing
### Commits:
- Enhance unit tests for space.ts with improved randomness testing
- Enhance unit tests for space.ts with improved randomness testing
- Enhance unit tests for space.ts with improved randomness testing
- Enhance unit tests for space.ts with improved randomness testing
- Enhance unit tests for space.ts with improved randomness testing
### Commits:
- Enhance unit tests for space.ts with improved randomness testing
- Enhance unit tests for space.ts with improved randomness testing
- Enhance unit tests for space.ts with improved randomness testing
- Enhance unit tests for space.ts with improved randomness testing
- Enhance unit tests for space.ts with improved randomness testing
### Commits:
- Enhance unit tests for space.ts with improved randomness testing
- Enhance unit tests for space.ts with improved randomness testing
- Enhance unit tests for space.ts with improved randomness testing
- Enhance unit tests for space.ts with improved randomness testing
- Enhance unit tests for space.ts with improved randomness testing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant