Skip to content

watch mode doesn't play well with cljs reload #2

@lucywang000

Description

@lucywang000

I started a kaocha watch in shadow-cljs clj-repl, so that everytime the cljs code changes the test could be auto-run.

yarn shadow-cljs clj-repl
> (kaocha.watch/run (kaocha.repl/config))

However kaocha immediately runs the tests after a file change - before shadow-cljs finishes hot reloading. So it's the old code that gets tested, not the most recent version.

So I guess we need a way to let kaocha/chui-remote to "wait for a shadow-cljs reload event and only then run the tests".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🙈Out of Scope

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions