chore: do not slice error in IA (#9487)

This commit is contained in:
jrandolf 2023-01-11 14:04:52 +01:00 committed by GitHub
parent 3fde00525e
commit 000ad18792
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -250,10 +250,7 @@ This issue has an invalid Puppeteer version: \`${value}\`. Versions must follow
await mkdir('out'); await mkdir('out');
Promise.all([ Promise.all([
writeFile(join('out', 'main.ts'), mvce.split('\n').slice(1, -1).join('\n')), writeFile(join('out', 'main.ts'), mvce.split('\n').slice(1, -1).join('\n')),
writeFile( writeFile(join('out', 'puppeteer-error.txt'), error),
join('out', 'puppeteer-error.txt'),
error.split('\n').slice(1, -1).join('\n')
),
writeFile( writeFile(
join('out', 'puppeteer.config.js'), join('out', 'puppeteer.config.js'),
configuration.split('\n').slice(1, -1).join('\n') configuration.split('\n').slice(1, -1).join('\n')