Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion apps/guides/__tests__/og-image.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ function assertValidPng(filePath: string): void {
}

describe('guides OG image generation', () => {
// Generating per-post PNGs takes ~30-60s for the full set;
// default vitest hook timeout is 5s.
beforeAll(() => {
execSync('bun run scripts/generate-og-images.ts', {
cwd: APP_DIR,
stdio: 'inherit',
});
});
}, 180_000);

it('generates public/og-image.png', () => {
expect(fs.existsSync(ROOT_OG_PATH)).toBe(true);
Expand Down
2 changes: 1 addition & 1 deletion apps/guides/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "2.0.25",
"private": true,
"scripts": {
"build": "bun run generate-og-images && bun run build-content && next build",
"build": "bun run build-content && bun run generate-og-images && next build",
"build-content": "bun run scripts/build-content.ts",
"clean": "bunx rimraf .next node_modules out",
"demo-enhancement": "bun run scripts/demo-enhancement.ts",
Expand Down
Loading