# Issues with JuliaFormatter and JET tests on 1.12

**URL:** <https://discourse.julialang.org/t/issues-with-juliaformatter-and-jet-tests-on-1-12/134596>\
**Category:** General Usage\
**Created:** [December 16, 2025, 8:18pm UTC](https://discourse.julialang.org/t/issues-with-juliaformatter-and-jet-tests-on-1-12/134596 "2025-12-16T20:18:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rsenne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rsenne/32/212973_2.png) [@rsenne](https://discourse.julialang.org/u/rsenne)\
**Post date:** [December 16, 2025, 8:18pm UTC](https://discourse.julialang.org/t/issues-with-juliaformatter-and-jet-tests-on-1-12/134596/1 "2025-12-16T20:18:15Z")

</div>

I have tests like this across a few packages:

```julia-auto

    @testset verbose=true "Package Quality" begin

        @testset "Blue Formatting" begin
            @test_broken JuliaFormatter.format(MyPackage; verbose=false, overwrite=false)
        end

        @testset "JET.jl Code Linting" begin
            if VERSION >= v"1.11"
                JET.test_package(MyPackage; target_defined_modules=true)
            end
        end
    end

```

I have found that to get JET.jl to work with \>=1.12 I’ve had to pin it to newer versions. I realize this is because JuliaFormatter.jl is currently stuck using JuliaSyntax.jl 0.4 and JET is currently needing v1.0. Because of this, I seem to only be able to either have my JET tests work error free, or my JuliaFormatter tests work (they just persistently fail even if I have the code formatted). Just curious if anyone has found a workaround for this/experienced this or if I’m missing something silly.

---

<div class="post-metadata">

**Author:** ![gdalle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdalle/32/27854_2.png) [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Post date:** [December 16, 2025, 10:32pm UTC](https://discourse.julialang.org/t/issues-with-juliaformatter-and-jet-tests-on-1-12/134596/2 "2025-12-16T22:32:28Z")

</div>

My conclusion from similar struggles is that JuliaFormatter should not run as part of the tests themselves, but typically as a `pre-commit` hook, or at the very least a separate CI job. I plan to update ModernJuliaWorkflows to reflect this newfound wisdom.

---

<div class="post-metadata">

**Author:** ![rsenne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rsenne/32/212973_2.png) [@rsenne](https://discourse.julialang.org/u/rsenne)\
**Post date:** [December 16, 2025, 10:36pm UTC](https://discourse.julialang.org/t/issues-with-juliaformatter-and-jet-tests-on-1-12/134596/3 "2025-12-16T22:36:19Z")

</div>

Got it. That makes sense to me!

---

<div class="post-metadata">

**Author:** ![gdalle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdalle/32/27854_2.png) [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Post date:** [December 16, 2025, 10:43pm UTC](https://discourse.julialang.org/t/issues-with-juliaformatter-and-jet-tests-on-1-12/134596/4 "2025-12-16T22:43:23Z")

</div>

I think BestieTemplate.jl has a decent setup for this kind of stuff
