We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96ec7ee commit ea8bdb4Copy full SHA for ea8bdb4
lib/internal/test_runner/utils.js
@@ -54,7 +54,8 @@ const kMultipleCallbackInvocations = 'multipleCallbackInvocations';
54
const kRegExpPattern = /^\/(.*)\/([a-z]*)$/;
55
56
const kPatterns = ['test', 'test/**/*', 'test-*', '*[._-]test'];
57
-const kDefaultPattern = `**/{${ArrayPrototypeJoin(kPatterns, ',')}}.?(c|m)js`;
+const kFileExtension = getOptionValue('--experimental-strip-types') ? '(c|m)(t|j)s' : '(c|m)js';
58
+const kDefaultPattern = `**/{${ArrayPrototypeJoin(kPatterns, ',')}}.?${kFileExtension}`;
59
60
61
function createDeferredCallback() {
0 commit comments