Files
jackwener__opencli/src/extension-manifest-regression.test.ts
jakevin e9867dcab0 feat(extension): v1.6.8 — fix scripting permission + refresh icons (#822)
* feat(extension): v1.6.8 — remove unused scripting permission, refresh icons

- Remove unused `scripting` permission (Chrome Web Store rejection fix)
- Bump version 1.6.7 → 1.6.8
- Redesign icons with neon gradient style (pure SVG paths, glow effect)

* revert icons to original, fix package.json version to 1.6.8

* test: remove stale scripting permission assertion
2026-04-06 02:07:00 +08:00

18 lines
636 B
TypeScript

import * as fs from 'node:fs/promises';
import * as path from 'node:path';
import { describe, expect, it } from 'vitest';
describe('extension manifest regression', () => {
it('keeps host permissions required by chrome.cookies.getAll', async () => {
const manifestPath = path.resolve(process.cwd(), 'extension', 'manifest.json');
const raw = await fs.readFile(manifestPath, 'utf8');
const manifest = JSON.parse(raw) as {
permissions?: string[];
host_permissions?: string[];
};
expect(manifest.permissions).toContain('cookies');
expect(manifest.host_permissions).toContain('<all_urls>');
});
});