File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 1
1
export function jestConfig ( ) {
2
2
return {
3
+ moduleFileExtensions : [ "js" , "json" ] ,
3
4
modulePathIgnorePatterns : [ `${ process . env . JEST_ROOT } /bazel/` ] ,
4
5
testPathIgnorePatterns : [ `${ process . env . JEST_ROOT } /bazel/` ] ,
5
6
testTimeout : 60 * 1000 ,
Original file line number Diff line number Diff line change @@ -189,6 +189,10 @@ def _ts_proto_libraries_impl(ctx):
189
189
js .append (map )
190
190
js_outputs .append (map )
191
191
192
+ # Include .ts file with source map. Used by VSCode debugger as
193
+ # well as Istanbul's code coverage reports (interactive HTML).
194
+ js .append (ts_ )
195
+
192
196
path = file .path [len (lib .path + "/" ):]
193
197
if declaration_prefix :
194
198
path = "%s/%s" % (declaration_prefix , path )
Original file line number Diff line number Diff line change @@ -245,6 +245,12 @@ def _ts_library_impl(ctx):
245
245
map = actions .declare_file (map_path (js_path (js_path_ , jsx )))
246
246
js .append (map )
247
247
js_outputs .append (map )
248
+
249
+ # Include .ts file with source map. Used by VSCode debugger
250
+ # as well as Istanbul's code coverage reports (interactive
251
+ # HTML).
252
+ js .append (ts_ )
253
+
248
254
declaration = actions .declare_file (declaration_path (declaration_path_ ))
249
255
declarations .append (declaration )
250
256
outputs .append (declaration )
You can’t perform that action at this time.
0 commit comments