Skip to content

Commit cadb557

Browse files
authored
Merge pull request #34 from power-assert-js/test-jsx
instrument *.tsx
2 parents cf1154b + 3660901 commit cadb557

File tree

7 files changed

+510
-37
lines changed

7 files changed

+510
-37
lines changed

guess.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ var path = require('path');
33

44
var ts = require('typescript');
55

6-
var pattern = 'test/**/*.ts';
6+
var pattern = 'test/**/*.@(ts|tsx)';
77
var cwd = process.cwd();
88
var packageData = require(path.join(cwd, 'package.json'));
99

1010
if (packageData &&
1111
typeof packageData.directories === 'object' &&
1212
typeof packageData.directories.test === 'string') {
1313
var testDir = packageData.directories.test;
14-
pattern = testDir + ((testDir.lastIndexOf('/', 0) === 0) ? '' : '/') + '**/*.ts';
14+
pattern = testDir + ((testDir.lastIndexOf('/', 0) === 0) ? '' : '/') + '**/*.@(ts|tsx)';
1515
}
1616

1717
var tsconfigPath = ts.findConfigFile(cwd, fs.existsSync);

0 commit comments

Comments
 (0)