From bf6c0ecaf7d87013cc397d2c4b4ba13b97715c5e Mon Sep 17 00:00:00 2001 From: "jj@jjsweb.site" Date: Mon, 23 Aug 2021 17:08:40 -0500 Subject: [PATCH] Ensure ts(x) tests are run with util --- run-tests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run-tests.js b/run-tests.js index 3e40f65f390b7..bb9a790d2cc91 100644 --- a/run-tests.js +++ b/run-tests.js @@ -70,12 +70,12 @@ async function main() { } console.log('Running tests with concurrency:', concurrency) - let tests = process.argv.filter((arg) => arg.endsWith('.test.js')) + let tests = process.argv.filter((arg) => arg.match(/\.test\.(js|ts|tsx)/)) let prevTimings if (tests.length === 0) { tests = ( - await glob('**/*.test.js', { + await glob('**/*.test.{js,ts,tsx}', { nodir: true, cwd: path.join(__dirname, 'test'), })