Skip to content

Commit

Permalink
fix tests (promotion still not working)
Browse files Browse the repository at this point in the history
  • Loading branch information
jchavarri committed Sep 12, 2023
1 parent 6cc9fbc commit c0661ee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 3 additions & 0 deletions dom/test/dune
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
(dirs :standard __snapshots__)

(melange.emit
(target test)
(alias test)
Expand All @@ -6,5 +8,6 @@
melange-webapi
melange-jest.jest
bisect_ppx.runtime_melange)
(runtime_deps __snapshots__/DomTestingLibrary_test.js.snap)
(preprocess
(pps melange.ppx)))
8 changes: 2 additions & 6 deletions dune
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@

(rule
(alias runtest)
(deps (alias_rec test))
; doesn't work :_(
; (targets
; %{project_root}/dom/test/test/dom/test/__snapshots__/DomTestingLibrary_test.js.snap
; %{project_root}/react/test/test/react/test/__snapshots__/ReactTestingLibrary_test.js.snap)
(mode promote)
(deps
(alias_rec test))
(action
(run npx jest)))
3 changes: 3 additions & 0 deletions react/test/dune
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
(dirs :standard __snapshots__)

(melange.emit
(target test)
(alias test)
Expand All @@ -6,5 +8,6 @@
melange-jest.jest
bisect_ppx.runtime_melange
reason-react)
(runtime_deps __snapshots__/ReactTestingLibrary_test.js.snap)
(preprocess
(pps melange.ppx reason-react-ppx)))

0 comments on commit c0661ee

Please sign in to comment.