Skip to content

Instantly share code, notes, and snippets.

View laurenfackler's full-sized avatar

Lauren Fackler laurenfackler

  • Port St. Lucie, FL
View GitHub Profile
@kieraneglin
kieraneglin / example_live_test.exs
Last active February 11, 2024 03:44
Pow sessions with LiveView (including tests)
defmodule MyAppWeb.ExampleLiveTest do
# `LiveviewCase` is a custom test helper - pretty much the same as ConnCase but with
# import Phoenix.LiveViewTest
# import MyApp.Support.AuthHelpers
use MyAppWeb.LiveviewCase, async: false
import MyApp.Factory
alias MyApp.Repo
alias MyAppWeb.ExampleLive