From be406d7621ca52858716acc37e71ae20c370b4be Mon Sep 17 00:00:00 2001 From: Jaakko Lappalainen Date: Fri, 20 May 2022 16:15:40 +0100 Subject: [PATCH] fix: strip console warning to make tests pass --- e2e/__tests__/customEsmTestSequencers.test.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/e2e/__tests__/customEsmTestSequencers.test.ts b/e2e/__tests__/customEsmTestSequencers.test.ts index 706df262b620..b52124dc9d8e 100644 --- a/e2e/__tests__/customEsmTestSequencers.test.ts +++ b/e2e/__tests__/customEsmTestSequencers.test.ts @@ -20,6 +20,14 @@ onNodeVersions('>=12.16.0', () => { expect(result.exitCode).toBe(0); const sequence = extractSummary(result.stderr) .rest.replace(/PASS /g, '') + .replace( + / {2}Configuration option testSequencer should be a global config, not per-project.\n/g, + '', + ) + .replace( + /Configuration option testSequencer should be a global config, not per-project.\n/g, + '', + ) .split('\n'); expect(sequence).toEqual([ './a.test.js',