Skip to content

Commit

Permalink
Run esbuild in test to make wallaby work in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hackartisan committed Feb 24, 2025
1 parent a4e85ee commit 17d8343
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
8 changes: 7 additions & 1 deletion config/test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,10 @@ config :dpul_collections, :figgy_hydrator, poll_interval: 50

config :dpul_collections, :web_connections, figgy_url: "https://figgy.example.com"

config :wallaby, otp_app: :dpul_collections
config :wallaby,
otp_app: :dpul_collections,
screenshot_on_failure: true,
chromedriver: [
# change to false if you want to see the browser in action
headless: true
]
7 changes: 6 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ defmodule DpulCollections.MixProject do
setup: ["deps.get", "ecto.setup", "assets.setup", "assets.build"],
"ecto.setup": ["ecto.create", "ecto.migrate", "run priv/repo/seeds.exs"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
test: ["ecto.create --quiet", "ecto.migrate --quiet", "coveralls.html"],
test: [
"esbuild dpul_collections",
"ecto.create --quiet",
"ecto.migrate --quiet",
"coveralls.html"
],
"assets.setup": ["tailwind.install --if-missing", "esbuild.install --if-missing"],
"assets.build": ["tailwind dpul_collections", "esbuild dpul_collections"],
"assets.deploy": [
Expand Down

0 comments on commit 17d8343

Please sign in to comment.