diff --git a/packages/e2e-tests/specs/performance/post-editor.test.js b/packages/e2e-tests/specs/performance/post-editor.test.js index 54689fff5e5f1..5fa46c71bf62c 100644 --- a/packages/e2e-tests/specs/performance/post-editor.test.js +++ b/packages/e2e-tests/specs/performance/post-editor.test.js @@ -3,7 +3,6 @@ */ import { basename, join } from 'path'; import { writeFileSync } from 'fs'; -import { sum } from 'lodash'; /** * WordPress dependencies @@ -226,6 +225,10 @@ describe( 'Post Editor Performance', () => { } ); it( 'Searching the inserter', async () => { + function sum( arr ) { + return arr.reduce( ( a, b ) => a + b, 0 ); + } + // Measure time to search the inserter and get results. await openGlobalBlockInserter(); for ( let j = 0; j < 10; j++ ) {