Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.
Rust chatgptclaudeclidesktopdesktop-appelectron-alternativegeminilinuxmacosnativefierno-electronrusttauriweb-to-desktopwebsite-to-appwebviewwindowsyoutube
test: keep manifest guard node-only
Tw938ebafda35090
diff --git a/tests/unit/macos-proxy-feature.test.ts b/tests/unit/macos-proxy-feature.test.tsindex febb00de..d095b929 100644--- a/tests/unit/macos-proxy-feature.test.ts+++ b/tests/unit/macos-proxy-feature.test.ts@@ -1,32 +1,23 @@-import { execFileSync } from 'node:child_process';+import fs from 'node:fs';import path from 'node:path';import { describe, expect, it } from 'vitest';describe('macOS proxy feature', () => {it('keeps the Tauri proxy API behind the package feature gate', () => {const manifestPath = path.join(process.cwd(), 'src-tauri', 'Cargo.toml');- const metadata = JSON.parse(- execFileSync(- 'cargo',- [- 'metadata',- '--manifest-path',- manifestPath,- '--format-version',- '1',- '--no-deps',- ],- { encoding: 'utf8' },- ),+ const manifest = fs.readFileSync(manifestPath, 'utf8');+ const dependencies = manifest.slice(+ manifest.indexOf('[dependencies]'),+ manifest.indexOf('[target.'),);- const pakePackage = metadata.packages.find(- (pkg: { name: string }) => pkg.name === 'pake',- );- const tauriDependency = pakePackage.dependencies.find(- (dependency: { name: string }) => dependency.name === 'tauri',+ const packageFeatures = manifest.slice(+ manifest.indexOf('[features]'),+ manifest.indexOf('[profile.'),);- expect(tauriDependency.features).not.toContain('macos-proxy');- expect(pakePackage.features['macos-proxy']).toEqual(['tauri/macos-proxy']);+ expect(dependencies).not.toMatch(/^\s*"macos-proxy",?$/m);+ expect(packageFeatures).toMatch(+ /^macos-proxy = \["tauri\/macos-proxy"\]$/m,+ );});});