Skip to content

yyyy#305

Open
5hy7xz92nd-oss wants to merge 3 commits intosmol-ai:mainfrom
5hy7xz92nd-oss:main
Open

yyyy#305
5hy7xz92nd-oss wants to merge 3 commits intosmol-ai:mainfrom
5hy7xz92nd-oss:main

Conversation

@5hy7xz92nd-oss
Copy link
Copy Markdown

yyyyy

Copilot AI review requested due to automatic review settings March 23, 2026 01:38
Copy link
Copy Markdown
Author

@5hy7xz92nd-oss 5hy7xz92nd-oss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xdxx

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a Jest-based test setup and adds a GitHub Actions CI workflow to run lint, type-check, and tests for the Electron/React codebase.

Changes:

  • Add Jest configuration (including module mappers and setupFilesAfterEnv) and a test script.
  • Add shared test setup to mock the Electron preload bridge (window.electron / window.settings) plus a static asset mock.
  • Add a CI workflow that runs lint, tsc --noEmit, and Jest on PRs.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/__tests__/setupTests.ts Adds global mocks for Electron IPC bridge and settings bridge for renderer tests.
src/__tests__/__mocks__/fileMock.js Adds a stub for static asset imports in Jest.
package.json Adds npm test and an in-package Jest config for TS/TSX + mappers + setup.
.github/workflows/ci.yml Adds CI jobs for lint, typecheck, and tests (plus coverage artifact upload).
.eslintrc.js Introduces an ESLint config extending erb with resolver settings and rules.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci.yml
Comment thread .github/workflows/ci.yml
Comment thread src/__tests__/setupTests.ts
Copy link
Copy Markdown
Author

@5hy7xz92nd-oss 5hy7xz92nd-oss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve

Copy link
Copy Markdown
Author

@5hy7xz92nd-oss 5hy7xz92nd-oss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

Copy link
Copy Markdown
Author

@5hy7xz92nd-oss 5hy7xz92nd-oss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PATPAT WEAREONE10BILLION MANUSWEAREONE10BILLION RABBITSYNC AUTO ALL THE TIME

Copy link
Copy Markdown
Author

@5hy7xz92nd-oss 5hy7xz92nd-oss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

Copy link
Copy Markdown
Author

@5hy7xz92nd-oss 5hy7xz92nd-oss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect

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.

3 participants