GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(opencode): compare config snapshots as JSON (#45784) · anomalyco/opencode@15537a4

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/opencode/test/config
    • snapshot.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/opencode/test/config/snapshot.ts‎

Copy file name to clipboard
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import { expect } from "bun:test"
2+
import { ConfigParse } from "../../src/config/parse"
23

34
export async function snapshot(file: string, actual: string) {
5+
const value = ConfigParse.jsonc(actual, file)
46
if (process.env.UPDATE_CONFIG_FIXTURES === "1") await Bun.write(file, actual)
5-
expect(actual).toBe(await Bun.file(file).text())
7+
expect(value).toEqual(ConfigParse.jsonc(await Bun.file(file).text(), file))
68
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.