Files
gridline/desktop/src/lib/bundle-config.test.ts
T
adrianbonpin 092b3b2831
Release / linux (push) Successful in 39m3s
Release / windows (push) Canceled after 0s
chore(release): v0.8.2 (#43)
Version bump 0.8.1 -> 0.8.2 across the app shell, the website and the README, plus v0.8.2 changelog entries for the native MySQL execution work merged in #42.

- desktop/package.json, desktop/src-tauri/Cargo.toml, desktop/src-tauri/tauri.conf.json, Cargo.lock (cargo-regenerated; gridline only - webview2-com-macros stays 0.8.1)
- www/public/landing.js + www/src/pages/index.astro const version; new top entry in www/src/data/changelog.ts
- version.test.ts, bundle-config.test.ts, docs-coverage.test.ts updated to 0.8.2
- README: both banners, both download tables (asset names + tags, incl. apt/dnf strings), MAINTENANCE comment, new v0.8.2 bullet

Verified: cargo build (gridline v0.8.2) + cargo test --lib 442 passed / 0 failed; bun run test 133 files / 1151 tests exit 0; tsc clean.
2026-09-29 08:57:32 +08:00

21 lines
899 B
TypeScript

import { describe, it, expect } from "vitest";
import tauriConf from "../../src-tauri/tauri.conf.json";
describe("tauri bundle config (v0.8.2)", () => {
it("declares bundled pg_tools resources", () => {
expect(tauriConf.bundle.resources).toContain("resources/pg_tools/*");
});
it("version is 0.8.2", () => {
expect(tauriConf.version).toBe("0.8.2");
});
it("declares a .sql file association with alternate rank", () => {
const assoc = tauriConf.bundle.fileAssociations;
expect(Array.isArray(assoc)).toBe(true);
const sql = (assoc as { ext?: string[]; rank?: string; role?: string }[])
.find((a) => a.ext?.includes("sql"));
expect(sql, "a .sql association must be declared").toBeDefined();
// Alternate: appear under "Open With" without hijacking the default handler.
expect(sql!.rank).toBe("Alternate");
expect(sql!.role).toBe("Editor");
});
});