Realm.node is not a valid Win32 application - During Integration Testing

Hi All,

We have started the integration testing for our atlas functions as per the below link.

We have a test function with below lines:

const { app_id } = require("…/…/realm_config.json");
const Realm = require(“realm”);
const app = new Realm.App(app_id);


We have already installed realm sdk.
Now when we execute the command ‘npm test’ then we get bellow error message.

Can you help on this ?

Error:

\?\C:\Dev-Code\Triggers\node_modules\realm\build\Release\realm.node is not a valid Win32 application. \?\C:\Dev-Code\Triggers\node_modules\realm\build\Release\realm.node

  at Runtime._loadModule (node_modules/jest-runtime/build/index.js:1218:29)
  at bindings (node_modules/bindings/bindings.js:112:48)
  at getRealmConstructor (node_modules/realm/lib/index.js:28:37)

Thanks

It’s working fine with ‘npm install realm@10.20.0’.