@@ -120,7 +120,9 @@ describe("opencode-drive", () => {
120120 expect ( initStatus ) . toBe ( 0 )
121121 const artifacts = initOutput . trim ( )
122122 expect ( await Bun . file ( join ( artifacts , "files" , ".opencode" , "opencode.jsonc" ) ) . exists ( ) ) . toBe ( true )
123- expect ( await Bun . file ( join ( artifacts , "files" , ".opencode" , "opencode.jsonc" ) ) . json ( ) ) . toMatchObject ( {
123+ expect (
124+ Bun . JSONC . parse ( await Bun . file ( join ( artifacts , "files" , ".opencode" , "opencode.jsonc" ) ) . text ( ) ) ,
125+ ) . toMatchObject ( {
124126 model : "simulation/gpt-sim-model" ,
125127 snapshots : false ,
126128 permissions : [ { action : "*" , resource : "*" , effect : "allow" } ] ,
@@ -765,13 +767,15 @@ describe("opencode-drive", () => {
765767 gitWriteError : expect . stringContaining ( "must not modify Git metadata" ) ,
766768 matches : true ,
767769 } )
768- expect ( await Bun . file ( join ( artifacts , "files" , ".opencode" , "opencode.jsonc" ) ) . json ( ) ) . toMatchObject ( {
770+ expect (
771+ Bun . JSONC . parse ( await Bun . file ( join ( artifacts , "files" , ".opencode" , "opencode.jsonc" ) ) . text ( ) ) ,
772+ ) . toMatchObject ( {
769773 autoupdate : false ,
770774 model : "simulation/gpt-sim-model" ,
771775 providers : { simulation : { models : { "gpt-sim-model" : { } } } } ,
772776 test : { declared : true , setup : true } ,
773777 } )
774- expect ( await Bun . file ( join ( artifacts , "files" , ".opencode" , "tui.jsonc" ) ) . json ( ) ) . toEqual ( {
778+ expect ( Bun . JSONC . parse ( await Bun . file ( join ( artifacts , "files" , ".opencode" , "tui.jsonc" ) ) . text ( ) ) ) . toEqual ( {
775779 test : { declared : true , setup : true } ,
776780 } )
777781 const backendEvents = ( await Bun . file ( join ( artifacts , "backend-events.jsonl" ) ) . text ( ) )
0 commit comments