Skip to content

Commit

Permalink
run cts, mts test files
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Sep 27, 2023
1 parent 3fe8c76 commit 9fc45d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ const runAllFiles = (options, env, tap, processDB) => {
if (options.flow && flowNode)
options['node-arg'].push('-r', flowNode)

if (options.ts && tsNode && /\.tsx?$/.test(file)) {
if (options.ts && tsNode && /\.([mc]?ts|tsx?)$/.test(file)) {
debug('typescript file', file)
const compilerOpts = JSON.parse(env.TS_NODE_COMPILER_OPTIONS || '{}')
if (options.jsx)
Expand All @@ -706,7 +706,7 @@ const runAllFiles = (options, env, tap, processDB) => {
...(options['test-arg']),
]
tap.spawn(node, args, opt, file)
} else if (/\.jsx$|\.tsx?$|\.[mc]?js$/.test(file)) {
} else if (/\.jsx$|\.tsx?$|\.[mc]?[jt]s$/.test(file)) {
debug('js file', file)
/* istanbul ignore next - version specific behavior */
const experimental = /^v10\./.test(process.version) && /\.mjs$/.test(file)
Expand Down

0 comments on commit 9fc45d0

Please sign in to comment.