Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ jobs:
with:
version: "2026.05.25"

- uses: DeLaGuardo/setup-clojure@master
with:
cli: latest

- run: npm ci
- run: npm run fmt:check
- run: npm run lint
- run: npm run patrol
- run: npm test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
/checkouts
/dev-resources/public/js/*
/out
/.cpcache
/.clj-kondo/.cache
/.clj-kondo/imports
/.lsp
Expand Down
8 changes: 8 additions & 0 deletions deps.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{:aliases
{:patrol
{:deps {io.github.olecve/cljs-patrol
{:git/tag "v0.0.17"
:git/sha "1616b8d0daec1ffa7d8cec6f9ce08348d837202a"}}
:main-opts ["-m" "cljs-patrol.core"
"--fail-on" "all"
"src/main"]}}}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"test": "npx shadow-cljs compile test && node out/test.js",
"test:watch": "npx shadow-cljs watch test --config-merge \"{:autorun true}\"",
"lint": "clj-kondo --lint src",
"patrol": "clojure -M:patrol",
"fmt": "prettier --write \"**/*.{clj,cljs,cljc,edn}\"",
"fmt:check": "prettier --check \"**/*.{clj,cljs,cljc,edn}\""
},
Expand Down
8 changes: 4 additions & 4 deletions src/main/react_testing_library_cljs/user_event.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
([^js user element] (.unhover user element))
([^js user element options] (.unhover user element (clj->js options))))
(defn type
"Types text into an element character by character, simulating the full
keyboard event sequence for each character.
"Types text into an element one character at a time.
Simulates the full keyboard event sequence for each character.

See [type](https://testing-library.com/docs/user-event/utility/#type)."
([^js user element text] (.type user element text))
Expand Down Expand Up @@ -90,8 +90,8 @@
([^js user] (.tab user))
([^js user options] (.tab user (clj->js options))))
(defn keyboard
"Simulates keyboard events for the given key descriptor string,
e.g. {Enter}, a, {{a}}.
"Simulates keyboard events for the given key descriptor string.
For example `{Enter}`, `a`, or `{{a}}`.

See [keyboard](https://testing-library.com/docs/user-event/keyboard)."
([^js user text] (.keyboard user text))
Expand Down
Loading