Skip to content

Commit 2a31238

Browse files
committed
Update comment.
1 parent e52e772 commit 2a31238

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_other.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3391,8 +3391,8 @@ def test_embind_tsgen(self, opts):
33913391

33923392
# Test that the output compiles with a TS file that uses the defintions.
33933393
shutil.copyfile(test_file('other/embind_tsgen_main.ts'), 'main.ts')
3394-
# A package file with type=module is needed to tell the TSC that we're
3395-
# using modules.
3394+
# A package file with type=module is needed to enabled ES modules in TSC and
3395+
# also run the output JS file as a module in node.
33963396
shutil.copyfile(test_file('other/embind_tsgen_package.json'), 'package.json')
33973397
cmd = shared.get_npm_cmd('tsc') + ['embind_tsgen.d.ts', 'main.ts', '--module', 'NodeNext', '--moduleResolution', 'nodenext']
33983398
shared.check_call(cmd)

0 commit comments

Comments
 (0)