This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-06-21
Channels
- # announcements (2)
- # beginners (74)
- # clojure (12)
- # clojure-europe (28)
- # clojure-italy (8)
- # clojure-nl (2)
- # clojure-norway (11)
- # clojure-sweden (5)
- # clojure-uk (4)
- # conjure (8)
- # datalevin (1)
- # hoplon (22)
- # improve-getting-started (8)
- # re-frame (1)
- # reagent (4)
- # ring (1)
- # shadow-cljs (14)
- # squint (2)
- # xtdb (1)
Overall, the :target :esm-files
output seems to not give any issues for me on a codebase with dozens of test namespaces
The only thing to be mindful of is that vitest sees the world differently compared to shadow with :target :browser
. e.g. it always wants ESM distributions of all packages, so you may need to be careful in how you consume some NPM deps in CLJS code.
However, if you already use :target :esm
and process the output with Vite, then vitest "just works" out of the box and needs little more than specifying a pattern of test files.
If you are testing React components and made extensive use of browser APIs that don't exist in JSDOM, then you will absolutely run into trouble, but that is no longer a Shadow CLJS issue.