From 3f9da1fe5510cf2aeab480b00e40fc0b9b1974ef Mon Sep 17 00:00:00 2001 From: David Tudury Date: Thu, 2 Mar 2023 10:15:00 -0800 Subject: [PATCH] fix: allow testing of template whose name matches its parent directory --- packages/test/src/util/loadTests.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/test/src/util/loadTests.js b/packages/test/src/util/loadTests.js index 509bfaa7..bc79f49e 100644 --- a/packages/test/src/util/loadTests.js +++ b/packages/test/src/util/loadTests.js @@ -15,7 +15,8 @@ function getRenderer(dir) { var paths = [ path.join(dir, "index"), path.join(dir, "renderer"), - path.join(dir, "template.marko") + path.join(dir, "template.marko"), + path.join(dir, path.basename(dir)) ]; for (var i = 0; i < paths.length; i++) {