Skip to content

Commit

Permalink
fix: trying to get tests to work WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubrpawlowski committed Dec 11, 2023
1 parent de6f00c commit d2f949d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ install: ## Install development dependencies

.PHONY: build
build: ## Build the project
$(DUNE) build
$(DUNE) build @relude-fetch @test

.PHONY: build_verbose
build_verbose: ## Build the project
$(DUNE) build --verbose
$(DUNE) build --verbose @relude-fetch @test

.PHONY: serve
serve: ## Serve the application with a local HTTP server
Expand All @@ -59,4 +59,4 @@ format-check: ## Checks if format is correct

.PHONY: watch
watch: ## Watch for the filesystem and rebuild on every change
$(DUNE) build --watch
$(DUNE) build --watch @relude-fetch @test
9 changes: 9 additions & 0 deletions __tests__/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
(include_subdirs unqualified)

(melange.emit
(target output)
(alias test)
(libraries melange melange-jest.jest bastet relude relude-fetch)
(preprocess
(pps melange.ppx))
(module_systems commonjs))
2 changes: 1 addition & 1 deletion dune
Original file line number Diff line number Diff line change
@@ -1 +1 @@
(dirs :standard \ node_modules)
(dirs :standard __tests__ \ node_modules)

0 comments on commit d2f949d

Please # to comment.