Skip to content

Commit 6e7bfa5

Browse files
committed
add support for TypeScript transpiled exports when generating unit tests, update package.json keywords
1 parent a8a9447 commit 6e7bfa5

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pythagora",
3-
"version": "0.0.65",
3+
"version": "0.0.66",
44
"author": {
55
"name": "Zvonimir Sabljic",
66
"email": "[email protected]"
@@ -57,6 +57,9 @@
5757
"testing",
5858
"automation",
5959
"automated testing",
60+
"unit",
61+
"unit testing",
62+
"GPT",
6063
"integration",
6164
"integration testing",
6265
"mock",

src/utils/code.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,11 @@ function processAst(ast, cb) {
233233
});
234234
}
235235
}
236+
// Handle TypeScript transpiled exports
237+
else if (left.type === 'MemberExpression' &&
238+
left.object.name === 'exports') {
239+
return cb(left.property.name, null, 'exportFn');
240+
}
236241
}
237242
}
238243

0 commit comments

Comments
 (0)