From 538e6052d3ec000c9fd0b9efaa131bd1525304ef Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Fri, 17 Nov 2023 17:41:22 +0100 Subject: [PATCH] Fix function name --- tests/performance/compare-results.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/performance/compare-results.js b/tests/performance/compare-results.js index bb1d82532d132..af4878c9bce24 100644 --- a/tests/performance/compare-results.js +++ b/tests/performance/compare-results.js @@ -3,7 +3,7 @@ /** * External dependencies. */ -const { readFileSync, readDirSync } = require( 'node:fs' ); +const { readFileSync, readdirSync } = require( 'node:fs' ); const { join, basename } = require( 'node:path' ); /** @@ -30,7 +30,7 @@ const parseFile = ( fileName ) => const testResults = {}; const prevResults = {}; -for ( const { name } of readDirSync( process.env.WP_ARTIFACTS_PATH ) ) { +for ( const { name } of readdirSync( process.env.WP_ARTIFACTS_PATH ) ) { if ( ! name.endsWith( '.results.json' ) ) { continue; }