Skip to content

Migrate from jest to vitest (wip) #321

Migrate from jest to vitest (wip)

Migrate from jest to vitest (wip) #321

Triggered via pull request June 23, 2024 07:54
@ayushmanchhabraayushmanchhabra
synchronize #92
dev-82
Status Failure
Total duration 1m 45s
Artifacts

node.js.yml

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

Annotations

33 errors
tests/src/helpers.test.js > helpers > resolveTilde > ~: tests/src/helpers.test.js#L83
AssertionError: expected '/home/runner' to deeply equal '/home/DUMMY' - Expected + Received - /home/DUMMY + /home/runner ❯ tests/src/helpers.test.js:83:10
tests/src/helpers.test.js > helpers > resolveTilde > ~/: tests/src/helpers.test.js#L88
AssertionError: expected '/home/runner/' to deeply equal '/home/DUMMY/' - Expected + Received - /home/DUMMY/ + /home/runner/ ❯ tests/src/helpers.test.js:88:10
tests/src/helpers.test.js > helpers > resolveTilde > ~/folder: tests/src/helpers.test.js#L93
AssertionError: expected '/home/runner/folder' to deeply equal '/home/DUMMY/folder' - Expected + Received - /home/DUMMY/folder + /home/runner/folder ❯ tests/src/helpers.test.js:93:10
tests/src/library.test.js > library > makeLinuxShortcut > Basic instructions: tests/src/library.test.js#L193
AssertionError: expected false to deeply equal true - Expected + Received - true + false ❯ tests/src/library.test.js:193:10
tests/src/library.test.js > library > makeLinuxShortcut > Error writing file: tests/src/library.test.js#L226
AssertionError: expected true to deeply equal false - Expected + Received - false + true ❯ tests/src/library.test.js:226:10
tests/src/library.test.js > library > makeLinuxShortcut > Error setting permissions: tests/src/library.test.js#L273
AssertionError: expected true to deeply equal false - Expected + Received - false + true ❯ tests/src/library.test.js:273:10
tests/src/library.test.js > library > makeWindowsShortcut > Basic instructions: tests/src/library.test.js#L324
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:324:10
tests/src/library.test.js > library > makeWindowsShortcut > Use window mode default: tests/src/library.test.js#L353
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:353:10
tests/src/library.test.js > library > makeWindowsShortcut > Icon: tests/src/library.test.js#L382
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:382:10
tests/src/library.test.js > library > makeWindowsShortcut > No icon: tests/src/library.test.js#L412
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:/Users/DUMMY/icon.dll", "", "", "", "C:/Users/DUMMY/icon.dll,0", 1, "", ], ] + Received: undefined ❯ tests/src/library.test.js:412:10
build (ubuntu-latest, 8.3.0)
Process completed with exit code 1.
tests/src/helpers.test.js > helpers > resolveTilde > ~: tests/src/helpers.test.js#L83
AssertionError: expected '/Users/runner' to deeply equal '/home/DUMMY' - Expected + Received - /home/DUMMY + /Users/runner ❯ tests/src/helpers.test.js:83:10
tests/src/helpers.test.js > helpers > resolveTilde > ~/: tests/src/helpers.test.js#L88
AssertionError: expected '/Users/runner/' to deeply equal '/home/DUMMY/' - Expected + Received - /home/DUMMY/ + /Users/runner/ ❯ tests/src/helpers.test.js:88:10
tests/src/helpers.test.js > helpers > resolveTilde > ~/folder: tests/src/helpers.test.js#L93
AssertionError: expected '/Users/runner/folder' to deeply equal '/home/DUMMY/folder' - Expected + Received - /home/DUMMY/folder + /Users/runner/folder ❯ tests/src/helpers.test.js:93:10
tests/src/library.test.js > library > makeLinuxShortcut > Basic instructions: tests/src/library.test.js#L193
AssertionError: expected false to deeply equal true - Expected + Received - true + false ❯ tests/src/library.test.js:193:10
tests/src/library.test.js > library > makeLinuxShortcut > Error writing file: tests/src/library.test.js#L226
AssertionError: expected true to deeply equal false - Expected + Received - false + true ❯ tests/src/library.test.js:226:10
tests/src/library.test.js > library > makeLinuxShortcut > Error setting permissions: tests/src/library.test.js#L273
AssertionError: expected true to deeply equal false - Expected + Received - false + true ❯ tests/src/library.test.js:273:10
tests/src/library.test.js > library > makeWindowsShortcut > Basic instructions: tests/src/library.test.js#L324
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:324:10
tests/src/library.test.js > library > makeWindowsShortcut > Use window mode default: tests/src/library.test.js#L353
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:353:10
tests/src/library.test.js > library > makeWindowsShortcut > Icon: tests/src/library.test.js#L382
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:382:10
tests/src/library.test.js > library > makeWindowsShortcut > No icon: tests/src/library.test.js#L412
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:/Users/DUMMY/icon.dll", "", "", "", "C:/Users/DUMMY/icon.dll,0", 1, "", ], ] + Received: undefined ❯ tests/src/library.test.js:412:10
build (macos-latest, 8.3.0)
Process completed with exit code 1.
tests/src/helpers.test.js > helpers > resolveTilde > ~: tests/src/helpers.test.js#L83
AssertionError: expected 'C:\Users\runneradmin' to deeply equal '/home/DUMMY' - Expected + Received - /home/DUMMY + C:\Users\runneradmin ❯ tests/src/helpers.test.js:83:10
tests/src/helpers.test.js > helpers > resolveTilde > ~/: tests/src/helpers.test.js#L88
AssertionError: expected 'C:\Users\runneradmin/' to deeply equal '/home/DUMMY/' - Expected + Received - /home/DUMMY/ + C:\Users\runneradmin/ ❯ tests/src/helpers.test.js:88:10
tests/src/helpers.test.js > helpers > resolveTilde > ~/folder: tests/src/helpers.test.js#L93
AssertionError: expected 'C:\Users\runneradmin/folder' to deeply equal '/home/DUMMY/folder' - Expected + Received - /home/DUMMY/folder + C:\Users\runneradmin/folder ❯ tests/src/helpers.test.js:93:10
tests/src/library.test.js > library > makeLinuxShortcut > Basic instructions: tests/src/library.test.js#L193
AssertionError: expected false to deeply equal true - Expected + Received - true + false ❯ tests/src/library.test.js:193:10
tests/src/library.test.js > library > makeLinuxShortcut > Error writing file: tests/testHelpers.js#L206
Error: Item with the same name already exists: windows.vbs ❯ Directory.addItem node_modules/mock-fs/lib/directory.js:35:11 ❯ populate node_modules/mock-fs/lib/filesystem.js:205:15 ❯ Function.FileSystem.create node_modules/mock-fs/lib/filesystem.js:236:5 ❯ Proxy.mock node_modules/mock-fs/lib/index.js:137:29 ❯ mockfs tests/testHelpers.js:206:9 ❯ tests/src/library.test.js:28:5
tests/src/library.test.js > library > makeLinuxShortcut > Error setting permissions: tests/testHelpers.js#L206
Error: Item with the same name already exists: windows.vbs ❯ Directory.addItem node_modules/mock-fs/lib/directory.js:35:11 ❯ populate node_modules/mock-fs/lib/filesystem.js:205:15 ❯ Function.FileSystem.create node_modules/mock-fs/lib/filesystem.js:236:5 ❯ Proxy.mock node_modules/mock-fs/lib/index.js:137:29 ❯ mockfs tests/testHelpers.js:206:9 ❯ tests/src/library.test.js:28:5
tests/src/library.test.js > library > makeWindowsShortcut > Basic instructions: tests/testHelpers.js#L206
Error: Item with the same name already exists: windows.vbs ❯ Directory.addItem node_modules/mock-fs/lib/directory.js:35:11 ❯ populate node_modules/mock-fs/lib/filesystem.js:205:15 ❯ Function.FileSystem.create node_modules/mock-fs/lib/filesystem.js:236:5 ❯ Proxy.mock node_modules/mock-fs/lib/index.js:137:29 ❯ mockfs tests/testHelpers.js:206:9 ❯ tests/src/library.test.js:28:5
tests/src/library.test.js > library > makeWindowsShortcut > Use window mode default: tests/testHelpers.js#L206
Error: Item with the same name already exists: windows.vbs ❯ Directory.addItem node_modules/mock-fs/lib/directory.js:35:11 ❯ populate node_modules/mock-fs/lib/filesystem.js:205:15 ❯ Function.FileSystem.create node_modules/mock-fs/lib/filesystem.js:236:5 ❯ Proxy.mock node_modules/mock-fs/lib/index.js:137:29 ❯ mockfs tests/testHelpers.js:206:9 ❯ tests/src/library.test.js:28:5
tests/src/library.test.js > library > makeWindowsShortcut > Icon: tests/testHelpers.js#L206
Error: Item with the same name already exists: windows.vbs ❯ Directory.addItem node_modules/mock-fs/lib/directory.js:35:11 ❯ populate node_modules/mock-fs/lib/filesystem.js:205:15 ❯ Function.FileSystem.create node_modules/mock-fs/lib/filesystem.js:236:5 ❯ Proxy.mock node_modules/mock-fs/lib/index.js:137:29 ❯ mockfs tests/testHelpers.js:206:9 ❯ tests/src/library.test.js:28:5
tests/src/library.test.js > library > makeWindowsShortcut > No icon: tests/testHelpers.js#L206
Error: Item with the same name already exists: windows.vbs ❯ Directory.addItem node_modules/mock-fs/lib/directory.js:35:11 ❯ populate node_modules/mock-fs/lib/filesystem.js:205:15 ❯ Function.FileSystem.create node_modules/mock-fs/lib/filesystem.js:236:5 ❯ Proxy.mock node_modules/mock-fs/lib/index.js:137:29 ❯ mockfs tests/testHelpers.js:206:9 ❯ tests/src/library.test.js:28:5
build (windows-latest, 8.3.0)
Process completed with exit code 1.