fix(test): fix plugins test on win (#13860)
This commit is contained in:
parent
a1b10c3856
commit
1ffd18f131
|
|
@ -22,7 +22,7 @@ test('event order', async ({ runInlineTest, legacyConfigLoader }, testInfo) => {
|
||||||
const result = await runInlineTest({
|
const result = await runInlineTest({
|
||||||
'log.ts': `
|
'log.ts': `
|
||||||
import { appendFileSync } from 'fs';
|
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;
|
export default log;
|
||||||
`,
|
`,
|
||||||
'test.spec.ts': `
|
'test.spec.ts': `
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue