testing-clojure-cljs

Automates Clojure(script) testing setup and execution with shadow-cljs workflows.

6|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/open-hax/opencode-skills --skill testing-clojure-cljs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-clojure-cljs
Source: https://github.com/open-hax/opencode-skills/tree/main/.opencode/skills/testing-clojure-cljs
Command: npx skills add https://github.com/open-hax/opencode-skills --skill testing-clojure-cljs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps developers set up and run tests for Clojure and ClojureScript projects, consolidating configuration and test patterns in one reusable skill.

Core Features & Use Cases

  • Configures shadow-cljs builds for test environments (node and browser)
  • Provides example test namespaces using cljs.test and common fixtures
  • Includes cljs-init-tests integration for streamlined test initialization
  • Offers guidance for running tests locally and in CI

Quick Start

Follow the examples to bootstrap testing in your Clojure/ClojureScript project and run the tests with shadow-cljs.

Frequently Asked Questions about testing-clojure-cljs

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

FAQPage Schema
How do I set up ClojureScript tests using shadow-cljs?

Set up ClojureScript tests by configuring shadow-cljs builds for test environments and initializing the test runner with cljs-init-tests. This skill provides sample config snippets and test syntax examples to bootstrap testing for both Node and browser targets.

Does this testing setup support both Node and browser targets for ClojureScript?

Yes, the testing setup supports both Node and browser targets for ClojureScript projects. It provides specific shadow-cljs build configurations and guidance to run tests locally in either compatible runtime environment.

What dependencies do I need to run Clojure and ClojureScript tests?

You need cljs.test, cljs-init-tests, shadow-cljs, and a compatible runtime environment like Node or a browser to run the tests. These dependencies are required to execute the automated testing setup and patterns provided.

How do I run ClojureScript tests in a CI pipeline?

You can run ClojureScript tests in a CI pipeline using the shadow-cljs workflow configurations provided. The skill offers CI-ready guidance and sample configurations to automate test execution for your Clojure and ClojureScript projects.

What is the best way to write test fixtures for ClojureScript unit tests?

The best way to write test fixtures for ClojureScript unit tests is by using common fixtures within your cljs.test namespaces. This skill provides example test namespaces demonstrating the syntax and patterns needed for effective testing.