Files
toolbox-portal/scripts/licenses.test.ts

15 lines
591 B
TypeScript

import { describe, expect, it } from 'vitest';
import { createRuntimeLicenseBundle } from './licenses.mjs';
describe('runtime license bundle', () => {
it('contains the complete installed runtime package notices', async () => {
const bundle = await createRuntimeLicenseBundle(process.cwd());
expect(bundle).toContain('@add-ideas/toolbox-contract@');
expect(bundle).toContain('react@');
expect(bundle).toContain('react-dom@');
expect(bundle).toContain('scheduler@');
expect(bundle).toContain('Apache License');
expect(bundle).toContain('MIT License');
});
});