feat(server): host channel with token auth and metric events

This commit is contained in:
Carsten 2026-04-21 22:04:31 +02:00
parent d9a52db4ea
commit 61595e0293
3 changed files with 182 additions and 0 deletions

View file

@ -0,0 +1,24 @@
defmodule ServerWeb.ChannelCase do
@moduledoc """
Test helpers for Phoenix Channels.
Imports conveniences for testing channels and the sandbox-based Repo so tests
run concurrently and are isolated.
"""
use ExUnit.CaseTemplate
using do
quote do
import Phoenix.ChannelTest
import ServerWeb.ChannelCase
@endpoint ServerWeb.Endpoint
end
end
setup tags do
Server.DataCase.setup_sandbox(tags)
:ok
end
end