Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

678 B
Raw Blame
import { readFileSync } from 'node:fs';
import path from 'node:path';
import { fileURLToPath } from 'node:url';

import { describe, expect, it } from 'vitest';

const macNotificationsPackage = JSON.parse(
  readFileSync(
    path.resolve(
      path.dirname(fileURLToPath(import.meta.url)),
      '../../packages/electron-mac-notifications/package.json',
    ),
    'utf8',
  ),
) as { scripts?: Record<string, string> };

describe('first-party native addon install scripts', () => {
  it('overrides implicit node-gyp rebuild for the darwin-only notifications addon', () => {
    expect(macNotificationsPackage.scripts?.install).toBe('node scripts/build-native.mjs');
  });
});