livecodes/testing

Automate browser-based Jest and Testing Library tests in LiveCodes playgrounds.

1.5k|262|Updated Jan 10, 2021
One-click install
npx skills add https://github.com/live-codes/livecodes --skill livecodes-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: livecodes/testing
Source: https://github.com/live-codes/livecodes/tree/main/.agents/skills/livecodes/testing
Command: npx skills add https://github.com/live-codes/livecodes --skill livecodes-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates browser-based testing workflows for LiveCodes playground projects using Jest and Testing Library, providing immediate feedback on code changes.

Core Features & Use Cases

  • In-browser testing with Jest and Testing Library for playground code
  • Import code from script editor and run tests programmatically via the SDK
  • Watch mode and real-time test results during development

Quick Start

Create a LiveCodes playground with the jest template and open the tests panel to start running tests.

Frequently Asked Questions about livecodes/testing

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

FAQPage Schema
How do I run Jest tests in the browser?

You can run Jest tests directly in the browser by using the LiveCodes playground. It integrates Jest and Testing Library to provide immediate feedback on your code changes within the browser environment.

Can I use Testing Library for browser-based automated tests in a playground?

Yes, Testing Library is supported for browser-based automated tests. The LiveCodes playground integrates it with Jest, allowing you to write and execute tests directly in the browser.

How do I import code from the script editor to run tests programmatically?

You can import code from the script editor and run tests programmatically via the SDK. This enables automated test execution and script-editor integration within the LiveCodes environment.

Does watch mode provide real-time test results during development?

Yes, watch mode provides real-time test results during development. It applies to browser-based development tasks, offering immediate feedback on code changes as you write tests in the LiveCodes playground.

What is the best way to start writing tests in a LiveCodes playground?

The best way to start is to create a LiveCodes playground using the jest template. Opening the tests panel allows you to immediately write and run Jest tests in the browser environment.

Are there limitations to running tests in the LiveCodes browser environment?

This approach is limited to browser-based testing workflows using Jest and Testing Library within the LiveCodes playground. It is designed for in-browser test execution rather than Node.js-based automated tests.