regexp-generator: Update output path

Instead of an output/ folder, output the tests directly into the folder
where they live.
This commit is contained in:
Philip Chimento 2024-11-01 16:21:34 -07:00 committed by Philip Chimento
parent 99be4228ef
commit c8c800c845
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@ assert.sameValue(
}
function writeFile(desc, content, suffix = '') {
const filename = `output/character-class-${slugify(filenamify(desc.toLowerCase()))}${suffix}.js`;
const outPath = '../../test/built-ins/RegExp/CharacterClassEscapes';
const filename = `${outPath}/character-class-${slugify(filenamify(desc.toLowerCase()))}${suffix}.js`;
fs.writeFileSync(filename, content);
}