Unable to use registerCompletionHandler #3354
-
| 
         I was trying to follow this guide: https://github.com/avajs/ava/blob/main/docs/08-common-pitfalls.md#timeouts-because-a-file-failed-to-exit Here is my change: https://github.com/smartcontractkit/ea-framework-js/pull/309/files But received the following error: package.json: https://github.com/smartcontractkit/ea-framework-js/blob/main/package.json#L66  | 
  
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
| 
         I think this part of your config resets AVA's knowledge of      "extensions": [
      "ts"
    ],This should work: (Or maybe you want  Look for   | 
  
Beta Was this translation helpful? Give feedback.
I think this part of your config resets AVA's knowledge of
.mjs, making it userequire()rather thanimport():This should work:
(Or maybe you want
moduleforts, I'm not sure what the default is.)Look for
extensionsin https://github.com/avajs/ava/blob/main/docs/06-configuration.md.