electron-userland / electron-wix-msi

:dvd: Create traditional MSI installers for your Electron app
MIT License
319 stars 93 forks source link

Unit Test Failing on master branch #132

Open lafleurh opened 3 years ago

lafleurh commented 3 years ago

Unit tests are failing on the master branch:

FAIL tests/utils/rc-edit-spec.ts

...

● transfers exe file info to stub exe

expect(jest.fn()).toBeCalledWith(...expected)

- Expected
+ Received

  "C:\\tmp\\acmePgNxtR\\acme.exe",
@@ -1,8 +1,8 @@
  Object {
    "file-version": "1.2.3",
-   "icon": StringMatching /C:\\tmp\\acme.*\\app\.ico/,
+   "icon": "",

...

> 65 |   expect(rceditMock).toBeCalledWith(expect.stringMatching(acmeExeRegex), acmeFileInfo);

...

● uses parameter if rcinfo fails

expect(jest.fn()).toBeCalledWith(...expected)

- Expected
+ Received

  "C:\\tmp\\acmeMYBDaB\\acme.exe",
@@ -1,8 +1,8 @@
  Object {
    "file-version": "3.3.3",
-   "icon": StringMatching /C:\\tmp\\acme.*\\app\.ico/,
+   "icon": "",

...

> 87 |   expect(rceditMock).toBeCalledWith(expect.stringMatching(acmeExeRegex), wayneOptions);

...

Test Suites: 1 failed, 9 passed, 10 total Tests: 2 failed, 140 passed, 142 total

Building on Windows