Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 629 Bytes

README.md

File metadata and controls

42 lines (30 loc) · 629 Bytes

vitest + @testing-library + reagent

install dependencies

pnpm install

compile tests in src/test/reagent_test.cljs into target/vitest/js by shadow-cljs. (see shadow-cljs.edn)

pnpm unit:compile

in another terminal, watch and run compile output by vitest.

pnpm unit

with beautiful ui

pnpm unit --ui

browser mode

you can run component tests in real browser.

first, install playwright test browser.

pnpm exec playwright install
pnpm unit:browser

you can run component tests in background (also known as headless mode)

pnpm unit:headless