resume/test/scripts/preview.js
ilia 234a8866b1 Multi-resume profiles, ai-bw template, and README refresh
Resume data is loaded from resume/<slug>.yml via RESUME_NAME (default dobkin), with per-slug profile photos and webpack alias wiring. Export and preview honor the slug; package scripts add convenience dev/export targets. Add ai-bw layout and preview asset, cherepaha profile, and experience legend metadata on green and purple. When birth year is omitted, cool and material-dark themes show "Based in" instead of "Born" so birth.location can mean current location. README documents the new workflow and fixes export wording.

Made-with: Cursor
2026-04-18 15:00:51 -04:00

20 lines
635 B
JavaScript
Executable File

const mocha = require('mocha');
const assert = require('assert');
const path = require('path');
const fs = require('fs');
const describe = mocha.describe;
const it = mocha.it;
const allResumes = require('./allResumes');
const { getResumeSlug } = require('../../scripts/resumeSlug');
describe('npm run preview', () => {
it('should have generated the png files', () => {
const slug = getResumeSlug();
const resumes = allResumes();
resumes.forEach(resume => {
const p = path.join(__dirname, '../../src/assets/preview/resume-' + resume.path + '-' + slug + '.png');
assert.ok(fs.existsSync(p));
});
});
});