Преглед изворни кода

move tests from src/test/ to top-level test/ to match shadow-cljs convention

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Brandon Wong пре 2 недеља
родитељ
комит
023884242b

+ 1 - 1
frontend/README.md

@@ -72,7 +72,7 @@ The `debug?` variable in [`config.cljs`](src/cljs/microtables_frontend/config.cl
 
 ## Testing
 
-Unit and integration tests live in `src/test/microtables_frontend/` and use [`cljs.test`](https://clojurescript.org/tools/testing) compiled to Node.js via a shadow-cljs `:node-test` target.
+Unit and integration tests live in `test/microtables_frontend/` and use [`cljs.test`](https://clojurescript.org/tools/testing) compiled to Node.js via a shadow-cljs `:node-test` target.
 
 ```sh
 npm test

+ 1 - 1
frontend/shadow-cljs.edn

@@ -1,4 +1,4 @@
-{:source-paths ["src/cljs" "src/test" "dev"]
+{:source-paths ["src/cljs" "test" "dev"]
 
  :dependencies [[reagent "0.9.1"]
                 [re-frame "0.11.0"]

frontend/src/test/microtables_frontend/evaluation_test.cljs → frontend/test/microtables_frontend/evaluation_test.cljs


frontend/src/test/microtables_frontend/events_test.cljs → frontend/test/microtables_frontend/events_test.cljs


+ 2 - 2
todo.md

@@ -55,7 +55,7 @@
 
 - [x] **3.1 Unit tests for formula evaluation**
 
-  Implemented in `frontend/src/test/microtables_frontend/evaluation_test.cljs` using `cljs.test` + shadow-cljs `:node-test` target. Covers:
+  Implemented in `frontend/test/microtables_frontend/evaluation_test.cljs` using `cljs.test` + shadow-cljs `:node-test` target. Covers:
   - Basic arithmetic formulas
   - Cell references and chained references
   - Range functions (`sum`, `average`, etc.)
@@ -66,7 +66,7 @@
 
 - [x] **3.2 Integration tests for state transitions**
 
-  Implemented in `frontend/src/test/microtables_frontend/events_test.cljs`. Tests the pure function pipelines that event handlers compose (not through re-frame dispatch). Covers:
+  Implemented in `frontend/test/microtables_frontend/events_test.cljs`. Tests the pure function pipelines that event handlers compose (not through re-frame dispatch). Covers:
   - Editing a cell and verifying downstream re-evaluation
   - `change-datum-value` marks dirty without evaluating
   - Reference graph updates when a formula changes (old refs removed, new refs added)