Skip to content

Commit

Permalink
test_runner: support typescript files in default glob
Browse files Browse the repository at this point in the history
  • Loading branch information
RedYetiDev committed Sep 23, 2024
1 parent 96ec7ee commit ea8bdb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/internal/test_runner/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ const kMultipleCallbackInvocations = 'multipleCallbackInvocations';
const kRegExpPattern = /^\/(.*)\/([a-z]*)$/;

const kPatterns = ['test', 'test/**/*', 'test-*', '*[._-]test'];
const kDefaultPattern = `**/{${ArrayPrototypeJoin(kPatterns, ',')}}.?(c|m)js`;
const kFileExtension = getOptionValue('--experimental-strip-types') ? '(c|m)(t|j)s' : '(c|m)js';
const kDefaultPattern = `**/{${ArrayPrototypeJoin(kPatterns, ',')}}.?${kFileExtension}`;


function createDeferredCallback() {
Expand Down

0 comments on commit ea8bdb4

Please sign in to comment.