Skip to content

Commit 03d534f

Browse files
committed
Move runtime generated fixtures, adapt gitignore
1 parent d1fd29e commit 03d534f

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
.cache/
33
.clerk/
44
.cpcache/
5+
.calva/
56
.lsp/
7+
.lock
68
node_modules
79
/scratch
810
notebooks/scratch*
@@ -13,7 +15,7 @@ notebooks/scratch*
1315
clerk.iml
1416
/public/girouette.css
1517
/public/images/
16-
/test/nextjournal/clerk/fixtures/
18+
/test/nextjournal/clerk/fixtures/generated/
1719
*~
1820
.work
1921
/build

test/nextjournal/clerk/analyzer_test.clj

+3-3
Original file line numberDiff line numberDiff line change
@@ -428,10 +428,10 @@ my-uuid")]
428428

429429
(deftest ->hash
430430
(testing "notices change in depedency namespace"
431-
(let [test-var 'nextjournal.clerk.fixtures.my-test-ns/hello
432-
test-string "(ns test (:require [nextjournal.clerk.fixtures.my-test-ns :as my-test-ns])) (str my-test-ns/hello)"
431+
(let [test-var 'nextjournal.clerk.fixtures.generated.my-test-ns/hello
432+
test-string "(ns test (:require [nextjournal.clerk.fixtures.generated.my-test-ns :as my-test-ns])) (str my-test-ns/hello)"
433433
spit-with-value #(spit (format "test%s%s.clj" fs/file-separator (str/replace (namespace-munge (namespace test-var)) "." fs/file-separator ))
434-
(format "(ns nextjournal.clerk.fixtures.my-test-ns) (def hello %s)" %))
434+
(format "(ns nextjournal.clerk.fixtures.generated.my-test-ns) (def hello %s)" %))
435435
_ (spit-with-value :hello)
436436
analyzed-before (ana/hash (analyze-string test-string))
437437
_ (spit-with-value :world)

0 commit comments

Comments
 (0)