fix(test): fix plugins test on win (#13860)

This commit is contained in:
Pavel Feldman 2022-04-30 21:30:06 -08:00 committed by GitHub
parent a1b10c3856
commit 1ffd18f131
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ test('event order', async ({ runInlineTest, legacyConfigLoader }, testInfo) => {
const result = await runInlineTest({
'log.ts': `
import { appendFileSync } from 'fs';
const log = (...args) => appendFileSync('${log}', args.join(' ') + '\\n');
const log = (...args) => appendFileSync('${log.replace(/\\/g, '\\\\')}', args.join(' ') + '\\n');
export default log;
`,
'test.spec.ts': `