Skip to content

Commit 365aac4

Browse files
authored
fix(e2e): replace ts-node/register with tsx/cjs in Jest reporter to fix ERR_REQUIRE_ESM
1 parent ecd5776 commit 365aac4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • suite-native/app/e2e/support/reporter
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
// JEST supports only commonJS modules https://jestjs.io/docs/code-transformation
2-
require('ts-node/register');
2+
// tsx/cjs is used instead of ts-node/register to handle ESM packages (e.g. @trezor/utils with "type": "module")
3+
require('tsx/cjs');
34
module.exports = require('./gitHubReporter.ts');

0 commit comments

Comments
 (0)