From 7d570b4761f6dc417748391b7d67ce45d407c169 Mon Sep 17 00:00:00 2001
From: Djuri Baars <dsbaars@users.noreply.github.com>
Date: Thu, 19 Dec 2024 22:09:48 +0100
Subject: [PATCH] JSON test platformio changes

---
 platformio.ini | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/platformio.ini b/platformio.ini
index d2abb92..f5bde17 100644
--- a/platformio.ini
+++ b/platformio.ini
@@ -159,9 +159,19 @@ build_flags =
 [env:native_test_only]
 platform = native
 test_framework = unity
+lib_deps =
+    ArduinoJson
+    fabiobatsilva/ArduinoFake@^0.4.0
+lib_compat_mode = off
+test_build_src = yes
+build_src_filter = 
+    -<*>                   ; exclude all files by default
+    +<lib/bitaxe_fetch.cpp>   ; include only specific files you need
 build_flags =
     ${btclock_base.build_flags}
     -D MCP_INT_PIN=8
     -D NEOPIXEL_PIN=34
     -D NEOPIXEL_COUNT=4
-    -D NUM_SCREENS=7
\ No newline at end of file
+    -D NUM_SCREENS=7
+     -DUNIT_TEST
+    -std=gnu++17
\ No newline at end of file