1
0
mirror of https://github.com/tc39/test262.git synced 2025-04-08 19:35:28 +02:00

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

@ -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);
}