running-and-testing

Build, test, and type check the Latch Desktop Electron app.

2|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/latchagent/latch-core --skill running-and-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: running-and-testing
Source: https://github.com/latchagent/latch-core/tree/main/.agents/skills/running-and-testing
Command: npx skills add https://github.com/latchagent/latch-core --skill running-and-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill unit streamlines the build, run, and testing processes for the Latch Desktop Electron app, ensuring a seamless development experience.

Core Features & Use Cases

  • Automated Build Process: Compiles the app in production mode and creates the necessary output directories.
  • Development Environment: Facilitates the use of hot reload for the renderer and rebuilding of main and preload processes.
  • Type Checking: Ensures both the main and renderer processes are free of type errors.
  • Testing: Provides a framework to run unit tests and verify the functionality of the app.
  • Native Module Management: Offers guidance on testing native modules like node-pty and better-sqlite3.
  • Use Case: This Skill is crucial for developers who want to verify changes in the codebase, quickly run tests, and build the app in different configurations.

Quick Start

Use the npm run build command to compile the app for production.

Frequently Asked Questions about running-and-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build and test an Electron app for production?

To build and test an Electron app for production, you can compile the application using the `npm run build` command, which creates the necessary output directories and verifies functionality through unit tests.

Why does hot reload stop working in my Electron renderer process?

Hot reload in the Electron renderer process requires a development environment that facilitates rebuilding of main and preload processes alongside the renderer to ensure changes are detected and compiled correctly.

Can I run type checking across both main and renderer processes in Electron?

Yes, you can run type checking across both the main and renderer processes in Electron to ensure the application codebase is completely free of type errors before compilation.

What is the best way to test native modules like better-sqlite3 in an Electron app?

Testing native modules like better-sqlite3 in an Electron app requires specific guidance for native module management to verify their functionality within the testing framework and build process.

Does the Electron build process support different configuration modes?

Yes, the Electron build process supports different configurations, allowing you to compile the app in production mode or utilize a development environment with hot reload for testing changes.

How do I verify code changes in an Electron desktop app?

You verify code changes in an Electron desktop app by running unit tests and type checking processes to ensure a stable development environment and confirm the application's functionality.