From 0e79ce42ca3bfbb740619896d5211ca097b1a669 Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Wed, 16 Jun 2021 01:03:47 +0300 Subject: [PATCH] feat(tests): support custom test to run --- build/webpack.tests.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/webpack.tests.config.js b/build/webpack.tests.config.js index e1c1b10..5d85d8c 100644 --- a/build/webpack.tests.config.js +++ b/build/webpack.tests.config.js @@ -10,7 +10,7 @@ const tempDir = jetpack.cwd("temp"); const entryFilePath = tempDir.path("testsInit.js"); const testsImports = testsDir - .find({ matching: "*.test.js" }) + .find({ matching: process.env.TEST ? `${process.env.TEST}.test.js` : "*.test.js" }) .reduce((fileContent, path) => { const normalizedPath = path.replace(/\\/g, "/"); return `${fileContent}require("../tests/${normalizedPath}");\n`;