Remember that if you’re want to write tests for the “native” platform, then Arduino framework will not be available.
You can use GitHub - FabioBatSilva/ArduinoFake: Arduino mocking made easy but not everything will work OOTB anyway.
Same for the included libs: if they require Arduino framework, they will not work (unless you mock the framework and set up platformio’s LDF to include the libs*).
*`lib_compat_mode` does NOT make a difference for `lib_deps`?