20 lines
621 B
TypeScript
20 lines
621 B
TypeScript
import { describe, expect, it } from 'vitest';
|
|
|
|
import nextConfig from '../../next.config';
|
|
|
|
const runtimePromptGlobs = [
|
|
'./lib/prompts/**/*.md',
|
|
'./lib/pbl/v2/prompts/**/*.md',
|
|
'./packages/@openmaic/generation/templates/**/*.md',
|
|
'./packages/@openmaic/generation/snippets/**/*.md',
|
|
'./packages/@openmaic/generation/prompts-pbl/**/*.md',
|
|
];
|
|
|
|
describe('standalone prompt assets', () => {
|
|
it('includes every dynamically loaded prompt directory in output file tracing', () => {
|
|
expect(nextConfig.outputFileTracingIncludes?.['/*']).toEqual(
|
|
expect.arrayContaining(runtimePromptGlobs),
|
|
);
|
|
});
|
|
});
|