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
20 lines
635 B
JavaScript
Executable File
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));
|
|
});
|
|
});
|
|
});
|