Skip to content

Migrate from jest to vitest (wip) #303

Migrate from jest to vitest (wip)

Migrate from jest to vitest (wip) #303

Triggered via pull request June 22, 2024 18:23
@ayushmanchhabraayushmanchhabra
synchronize #92
dev-82
Status Failure
Total duration 36s
Artifacts

node.js.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

23 errors
tests/index.test.js > createDesktopShortcut > Empty options: tests/index.test.js#L20
AssertionError: expected last "spy" call to have been called with [ …(2) ] - Expected + Received Array [ "No shortcuts were created due to lack of accurate details passed in to options object", Object { "customLogger": [Function spy], + "onlyCurrentOS": true, + "verbose": true, }, ] ❯ tests/index.test.js:20:8
tests/src/helpers.test.js > helpers > resolveTilde > ~: tests/src/helpers.test.js#L81
AssertionError: expected '/home/runner' to deeply equal '/home/DUMMY' - Expected + Received - /home/DUMMY + /home/runner ❯ tests/src/helpers.test.js:81:10
tests/src/helpers.test.js > helpers > resolveTilde > ~/: tests/src/helpers.test.js#L86
AssertionError: expected '/home/runner/' to deeply equal '/home/DUMMY/' - Expected + Received - /home/DUMMY/ + /home/runner/ ❯ tests/src/helpers.test.js:86:10
tests/src/helpers.test.js > helpers > resolveTilde > ~/folder: tests/src/helpers.test.js#L91
AssertionError: expected '/home/runner/folder' to deeply equal '/home/DUMMY/folder' - Expected + Received - /home/DUMMY/folder + /home/runner/folder ❯ tests/src/helpers.test.js:91:10
tests/src/library.test.js > library > makeLinuxShortcut > Basic instructions: tests/src/library.test.js#L197
AssertionError: expected false to deeply equal true - Expected + Received - true + false ❯ tests/src/library.test.js:197:10
tests/src/library.test.js > library > makeLinuxShortcut > Error writing file: tests/src/library.test.js#L230
AssertionError: expected true to deeply equal false - Expected + Received - false + true ❯ tests/src/library.test.js:230:10
tests/src/library.test.js > library > makeLinuxShortcut > Error setting permissions: tests/src/library.test.js#L277
AssertionError: expected true to deeply equal false - Expected + Received - false + true ❯ tests/src/library.test.js:277:10
tests/src/library.test.js > library > makeWindowsShortcut > Basic instructions: tests/src/library.test.js#L328
AssertionError: expected last "spawnSync" call to have been called with [ 'wscript', [ …(9) ] ] - Expected: Array [ "wscript", Array [ "/home/runner/work/create-desktop-shortcuts/create-desktop-shortcuts/src/windows.vbs", "C:/Users/DUMMY/Desktop/file.lnk", "C:/file.ext", "", "", "", "C:/file.ext", 1, "", ], ] + Received: undefined ❯ tests/src/library.test.js:328:10
tests/src/library.test.js > library > makeWindowsShortcut > Use window mode default: tests/src/library.test.js#L357
AssertionError: expected last "spawnSync" call to have been called with [ 'wscript', [ …(9) ] ] - Expected: Array [ "wscript", Array [ "/home/runner/work/create-desktop-shortcuts/create-desktop-shortcuts/src/windows.vbs", "C:/Users/DUMMY/Desktop/file.lnk", "C:/file.ext", "", "", "", "C:/file.ext", 1, "", ], ] + Received: undefined ❯ tests/src/library.test.js:357:10
tests/src/library.test.js > library > makeWindowsShortcut > Icon: tests/src/library.test.js#L386
AssertionError: expected last "spawnSync" call to have been called with [ 'wscript', [ …(9) ] ] - Expected: Array [ "wscript", Array [ "/home/runner/work/create-desktop-shortcuts/create-desktop-shortcuts/src/windows.vbs", "C:/Users/DUMMY/Desktop/file.lnk", "C:/file.ext", "", "", "", "C:/Users/DUMMY/icon.ico", 1, "", ], ] + Received: undefined ❯ tests/src/library.test.js:386:10
build (macos-latest, 18.20.3)
The job was canceled because "ubuntu-latest_18_20_3" failed.
tests/index.test.js > createDesktopShortcut > Empty options: tests/index.test.js#L20
AssertionError: expected last "spy" call to have been called with [ …(2) ] - Expected + Received Array [ "No shortcuts were created due to lack of accurate details passed in to options object", Object { "customLogger": [Function spy], + "onlyCurrentOS": true, + "verbose": true, }, ] ❯ tests/index.test.js:20:8
tests/src/helpers.test.js > helpers > resolveTilde > ~: tests/src/helpers.test.js#L81
AssertionError: expected '/Users/runner' to deeply equal '/home/DUMMY' - Expected + Received - /home/DUMMY + /Users/runner ❯ tests/src/helpers.test.js:81:10
tests/src/helpers.test.js > helpers > resolveTilde > ~/: tests/src/helpers.test.js#L86
AssertionError: expected '/Users/runner/' to deeply equal '/home/DUMMY/' - Expected + Received - /home/DUMMY/ + /Users/runner/ ❯ tests/src/helpers.test.js:86:10
tests/src/helpers.test.js > helpers > resolveTilde > ~/folder: tests/src/helpers.test.js#L91
AssertionError: expected '/Users/runner/folder' to deeply equal '/home/DUMMY/folder' - Expected + Received - /home/DUMMY/folder + /Users/runner/folder ❯ tests/src/helpers.test.js:91:10
tests/src/library.test.js > library > makeLinuxShortcut > Basic instructions: tests/src/library.test.js#L197
AssertionError: expected false to deeply equal true - Expected + Received - true + false ❯ tests/src/library.test.js:197:10
tests/src/library.test.js > library > makeLinuxShortcut > Error writing file: tests/src/library.test.js#L230
AssertionError: expected true to deeply equal false - Expected + Received - false + true ❯ tests/src/library.test.js:230:10
tests/src/library.test.js > library > makeLinuxShortcut > Error setting permissions: tests/src/library.test.js#L277
AssertionError: expected true to deeply equal false - Expected + Received - false + true ❯ tests/src/library.test.js:277:10
tests/src/library.test.js > library > makeWindowsShortcut > Basic instructions: tests/src/library.test.js#L328
AssertionError: expected last "spawnSync" call to have been called with [ 'wscript', [ …(9) ] ] - Expected: Array [ "wscript", Array [ "/Users/runner/work/create-desktop-shortcuts/create-desktop-shortcuts/src/windows.vbs", "C:/Users/DUMMY/Desktop/file.lnk", "C:/file.ext", "", "", "", "C:/file.ext", 1, "", ], ] + Received: undefined ❯ tests/src/library.test.js:328:10
tests/src/library.test.js > library > makeWindowsShortcut > Use window mode default: tests/src/library.test.js#L357
AssertionError: expected last "spawnSync" call to have been called with [ 'wscript', [ …(9) ] ] - Expected: Array [ "wscript", Array [ "/Users/runner/work/create-desktop-shortcuts/create-desktop-shortcuts/src/windows.vbs", "C:/Users/DUMMY/Desktop/file.lnk", "C:/file.ext", "", "", "", "C:/file.ext", 1, "", ], ] + Received: undefined ❯ tests/src/library.test.js:357:10
tests/src/library.test.js > library > makeWindowsShortcut > Icon: tests/src/library.test.js#L386
AssertionError: expected last "spawnSync" call to have been called with [ 'wscript', [ …(9) ] ] - Expected: Array [ "wscript", Array [ "/Users/runner/work/create-desktop-shortcuts/create-desktop-shortcuts/src/windows.vbs", "C:/Users/DUMMY/Desktop/file.lnk", "C:/file.ext", "", "", "", "C:/Users/DUMMY/icon.ico", 1, "", ], ] + Received: undefined ❯ tests/src/library.test.js:386:10
build (windows-latest, 18.20.3)
The job was canceled because "ubuntu-latest_18_20_3" failed.
build (windows-latest, 18.20.3)
The operation was canceled.