From 1ffd18f131c0bf2fe7fe8030a11d08c9c98e0fa2 Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Sat, 30 Apr 2022 21:30:06 -0800 Subject: [PATCH] fix(test): fix plugins test on win (#13860) --- tests/playwright-test/plugins.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/playwright-test/plugins.spec.ts b/tests/playwright-test/plugins.spec.ts index 2df73c104e..1ccee77738 100644 --- a/tests/playwright-test/plugins.spec.ts +++ b/tests/playwright-test/plugins.spec.ts @@ -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': `