Skip to content

Commit

Permalink
Ensure ts(x) tests are run with util
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Aug 23, 2021
1 parent 4a95f7c commit bf6c0ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ async function main() {
}

console.log('Running tests with concurrency:', concurrency)
let tests = process.argv.filter((arg) => arg.endsWith('.test.js'))
let tests = process.argv.filter((arg) => arg.match(/\.test\.(js|ts|tsx)/))
let prevTimings

if (tests.length === 0) {
tests = (
await glob('**/*.test.js', {
await glob('**/*.test.{js,ts,tsx}', {
nodir: true,
cwd: path.join(__dirname, 'test'),
})
Expand Down

0 comments on commit bf6c0ec

Please sign in to comment.