Skip to content

Set up Jest test suite and update dependencies#7

Open
Raphael005 wants to merge 2 commits into
iina:mainfrom
Raphael005:main
Open

Set up Jest test suite and update dependencies#7
Raphael005 wants to merge 2 commits into
iina:mainfrom
Raphael005:main

Conversation

@Raphael005

Copy link
Copy Markdown

Summary

Add a basic test suite using Jest and update project dependencies.

Changes

  • Testing setup

    • Add Jest and @babel/preset-env for testing
    • Create test setup file with IINA global mocks (tests/setup.js)
    • Add unit tests for utils.js (loadUserScripts, uuidv4) - 100% coverage
    • Add unit tests for msg.js constants - 100% coverage
  • Dependency updates

    • Update iina-plugin-definition from 0.0.8 to 0.99.3
    • Add @mui/material (required peer dependency for @mui/icons-material)
    • Add yarn.lock for consistent dependency resolution

Test Results

Test Suites: 2 passed, 2 total
Tests:       8 passed, 8 total

Co-Authored-By: Oz oz-agent@warp.dev

Raphael005 and others added 2 commits June 8, 2026 19:00
- Add Jest and @babel/preset-env for testing
- Create test setup with IINA global mocks
- Add tests for utils.js (loadUserScripts, uuidv4)
- Add tests for msg.js constants
- Update iina-plugin-definition to v0.99.3
- Add @mui/material peer dependency
- Add yarn.lock

Co-Authored-By: Oz <oz-agent@warp.dev>
Co-Authored-By: Oz <oz-agent@warp.dev>
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