Commit 59cbf4f
committed
fix(test): copy the builder configuration through JSON
The contract test isolates a configuration copy per packager because
electron-builder rewrites the object it is handed. structuredClone did
that locally on Node 26 and failed on the Node 24 the CI lane runs:
"Unable to deserialize cloned data due to invalid or unsupported version".
Everything electron-builder reads out of this configuration has to
survive serialization anyway, and JSON round-tripping behaves the same on
every version. `beforePack` is the one function in it and is carried
across by reference.
Generated-by: Claude Opus 5 via Claude Code1 parent 53d7a4e commit 59cbf4f
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
192 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
193 | 197 | | |
194 | 198 | | |
195 | 199 | | |
196 | | - | |
| 200 | + | |
197 | 201 | | |
198 | 202 | | |
199 | 203 | | |
| |||
0 commit comments