diff --git a/test-slipbox/.dir-locals.el b/test-slipbox/.dir-locals.el new file mode 100644 index 0000000..5ae70e0 --- /dev/null +++ b/test-slipbox/.dir-locals.el @@ -0,0 +1,6 @@ +((nil . ((eval . (setq-local + org-roam-directory (expand-file-name (locate-dominating-file + default-directory ".dir-locals.el")))) + (eval . (setq-local + org-roam-db-location (expand-file-name "org-roam.db" + org-roam-directory)))))) diff --git a/tests.el b/tests.el index 9e6925d..2a369b1 100644 --- a/tests.el +++ b/tests.el @@ -15,7 +15,7 @@ (require 'org-roam-export) (setq org-roam-directory (expand-file-name "./test-slipbox") - org-roam-db-location (expand-file-name "org-roam.db")) + org-roam-db-location (expand-file-name "./test-slipbox/org-roam.db")) (org-roam-update-org-id-locations) (org-roam-db-sync)