fix: include prompt assets in standalone output
This commit is contained in:
19
OpenMAIC/tests/config/standalone-prompt-assets.test.ts
Normal file
19
OpenMAIC/tests/config/standalone-prompt-assets.test.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
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),
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user