Skip to content

Commit

Permalink
config :phoenix, :json_library, Jason only on test env
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoefmoraes committed Jan 29, 2024
1 parent 8232b2e commit 08768b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
# and its dependencies with the aid of the Mix.Config module.
import Config

config :phoenix, :json_library, Jason
if Mix.env() == :test do
config :phoenix, :json_library, Jason
end

# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
Expand Down

0 comments on commit 08768b8

Please sign in to comment.