Skip to content

Commit 71d3b33

Browse files
committed
fix: qualify all module aliases to resolve supervisor and test failures
- Change unqualified aliases Cache, Runtime, Server to fully qualified names - Fix supervisor child specs to use Phoenix.ReactServer.Cache instead of Cache - Update test files to use fully qualified Telemetry and Cache aliases - Resolves 'module does not exist' error in supervisor initialization - Resolves compilation warnings in test files
1 parent 2b73562 commit 71d3b33

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/phoenix/react_server.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,9 @@ defmodule Phoenix.ReactServer do
321321

322322
use Supervisor
323323

324-
alias Cache
325-
alias Runtime
326-
alias Server
324+
alias Phoenix.ReactServer.Cache
325+
alias Phoenix.ReactServer.Runtime
326+
alias Phoenix.ReactServer.Server
327327

328328
@doc """
329329
Starts the Phoenix.ReactServer supervisor.

test/phoenix/react_server/runtime_integration_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defmodule Phoenix.ReactServer.RuntimeIntegrationTest do
44
alias Phoenix.ReactServer.Config
55
alias Phoenix.ReactServer.Runtime.Bun
66
alias Phoenix.ReactServer.Runtime.Deno
7-
alias Telemetry
7+
alias Phoenix.ReactServer.Telemetry
88

99
@moduletag :integration
1010

test/phoenix/react_server/server_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule Phoenix.ReactServer.ServerTest do
22
use ExUnit.Case, async: false
33

4-
alias Cache
4+
alias Phoenix.ReactServer.Cache
55
alias Phoenix.ReactServer.Server
66

77
setup do

0 commit comments

Comments
 (0)