Skip to content

refactor: 💡 Ensure consistent help flag behavior across commands (#53) #110

refactor: 💡 Ensure consistent help flag behavior across commands (#53)

refactor: 💡 Ensure consistent help flag behavior across commands (#53) #110

Triggered via push October 28, 2024 17:27
Status Failure
Total duration 43s
Artifacts

test-runner.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
src/commands/auth/login.test.ts > Login > should request token from verification session: src/commands/auth/login.test.ts#L62
AssertionError: expected "spy" to be called with arguments: [ { …(1) } ] Received: 1st spy call: Array [ Object { - "createPersonalAccessTokenFromVerificationSession": Array [ - Object { + "createPersonalAccessTokenFromVerificationSession": Object { + "__args": Object { "data": Object { "name": undefined, }, "where": Object { "id": "mockVerificationSession", }, }, - ], + }, }, ] Number of calls: 1 ❯ src/commands/auth/login.test.ts:62:33
src/commands/storage/get.test.ts > Get storage files/folder for the given cid or name > should show storage by cid with public gateway: src/commands/storage/get.test.ts#L135
AssertionError: expected "spy" to be called with arguments: [ Array(1) ] Received: 1st spy call: Array [ Array [ Object { "arweave id": "", "cid": "bafybeifylyzjlrpec75l66kggycx65yuouyavweaaqxmf22jvbtnmmaqru", "filecoin id": "58027558", "filename": "index.html", - "link": "https://bafybeifylyzjlrpec75l66kggycx65yuouyavweaaqxmf22jvbtnmmaqru.ipfs.flk-ipfs.xyz", + "link": "https://bafybeifylyzjlrpec75l66kggycx65yuouyavweaaqxmf22jvbtnmmaqru.ipfs.cf-ipfs.com", }, ], ] Number of calls: 1 ❯ src/commands/storage/get.test.ts:135:26
src/commands/storage/get.test.ts > Get storage files/folder for the given cid or name > should show storage by name with public gateway: src/commands/storage/get.test.ts#L161
AssertionError: expected "spy" to be called with arguments: [ [ { …(5) }, { …(5) } ] ] Received: 1st spy call: Array [ Array [ Object { "arweave id": "", "cid": "bafkreieasoapp3osmpdt2lwdqy6oqx75nhdsxgkoswyjuwy2675eyhvcg4", "filecoin id": "61342544", "filename": "basic.car", - "link": "https://bafkreieasoapp3osmpdt2lwdqy6oqx75nhdsxgkoswyjuwy2675eyhvcg4.ipfs.flk-ipfs.xyz", + "link": "https://bafkreieasoapp3osmpdt2lwdqy6oqx75nhdsxgkoswyjuwy2675eyhvcg4.ipfs.cf-ipfs.com", }, Object { "arweave id": "", "cid": "bafkreiebwzjtd62ctklmmidldy2z2exinzr2mc72tzhkbe7ftjxm7cwnle", "filecoin id": "61342549", "filename": "basic.car", - "link": "https://bafkreiebwzjtd62ctklmmidldy2z2exinzr2mc72tzhkbe7ftjxm7cwnle.ipfs.flk-ipfs.xyz", + "link": "https://bafkreiebwzjtd62ctklmmidldy2z2exinzr2mc72tzhkbe7ftjxm7cwnle.ipfs.cf-ipfs.com", }, ], ] Number of calls: 1 ❯ src/commands/storage/get.test.ts:161:26
src/commands/storage/list.test.ts > List storage files/folder for the selected project > should show storage list with public gateway: src/commands/storage/list.test.ts#L92
AssertionError: expected "spy" to be called with arguments: [ [ { …(5) }, { …(5) } ] ] Received: 1st spy call: Array [ Array [ Object { "arweave id": "", "cid": "bafybeifylyzjlrpec75l66kggycx65yuouyavweaaqxmf22jvbtnmmaqru", "filecoin id": "58027558", "filename": "index.html", - "link": "https://bafybeifylyzjlrpec75l66kggycx65yuouyavweaaqxmf22jvbtnmmaqru.ipfs.flk-ipfs.xyz", + "link": "https://bafybeifylyzjlrpec75l66kggycx65yuouyavweaaqxmf22jvbtnmmaqru.ipfs.cf-ipfs.com", }, Object { "arweave id": "", "cid": "bafkreieasoapp3osmpdt2lwdqy6oqx75nhdsxgkoswyjuwy2675eyhvcg4", "filecoin id": "61342544", "filename": "basic.car", - "link": "https://bafkreieasoapp3osmpdt2lwdqy6oqx75nhdsxgkoswyjuwy2675eyhvcg4.ipfs.flk-ipfs.xyz", + "link": "https://bafkreieasoapp3osmpdt2lwdqy6oqx75nhdsxgkoswyjuwy2675eyhvcg4.ipfs.cf-ipfs.com", }, ], ] Number of calls: 1 ❯ src/commands/storage/list.test.ts:92:26
src/utils/configuration/saveConfiguration.test.ts > The saveConfiguration utils > on valid arguments (typescript) > should return the expected filename (fleek.config.ts): src/utils/configuration/saveConfiguration.ts#L62
Error: ENOENT: no such file or directory, open '/home/runner/work/cli/cli/src/utils/configuration/templates/sites/config/fleek.config.ts.tmpl' ❯ Module.saveConfiguration src/utils/configuration/saveConfiguration.ts:62:9 ❯ src/utils/configuration/saveConfiguration.test.ts:132:24 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -2, code: 'ENOENT', syscall: 'open', path: '/home/runner/work/cli/cli/src/utils/configuration/templates/sites/config/fleek.config.ts.tmpl' }
src/utils/configuration/saveConfiguration.test.ts > The saveConfiguration utils > on valid arguments (typescript) > should return the expected filename (fleek.config.ts): src/utils/configuration/saveConfiguration.test.ts#L18
Error: Oops! Config file path not set. ❯ clearConfigFile src/utils/configuration/saveConfiguration.test.ts:18:30 ❯ src/utils/configuration/saveConfiguration.test.ts:120:15
src/utils/configuration/saveConfiguration.test.ts > The saveConfiguration utils > on valid arguments (typescript) > should be valid Typescript: src/utils/configuration/saveConfiguration.ts#L62
Error: ENOENT: no such file or directory, open '/home/runner/work/cli/cli/src/utils/configuration/templates/sites/config/fleek.config.ts.tmpl' ❯ Module.saveConfiguration src/utils/configuration/saveConfiguration.ts:62:9 ❯ src/utils/configuration/saveConfiguration.test.ts:137:24 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -2, code: 'ENOENT', syscall: 'open', path: '/home/runner/work/cli/cli/src/utils/configuration/templates/sites/config/fleek.config.ts.tmpl' }
src/utils/configuration/saveConfiguration.test.ts > The saveConfiguration utils > on valid arguments (typescript) > should be valid Typescript: src/utils/configuration/saveConfiguration.test.ts#L18
Error: Oops! Config file path not set. ❯ clearConfigFile src/utils/configuration/saveConfiguration.test.ts:18:30 ❯ src/utils/configuration/saveConfiguration.test.ts:120:15
src/utils/configuration/saveConfiguration.test.ts > The saveConfiguration utils > on valid arguments (typescript) > should have certain content properties: src/utils/configuration/saveConfiguration.ts#L62
Error: ENOENT: no such file or directory, open '/home/runner/work/cli/cli/src/utils/configuration/templates/sites/config/fleek.config.ts.tmpl' ❯ Module.saveConfiguration src/utils/configuration/saveConfiguration.ts:62:9 ❯ src/utils/configuration/saveConfiguration.test.ts:155:24 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -2, code: 'ENOENT', syscall: 'open', path: '/home/runner/work/cli/cli/src/utils/configuration/templates/sites/config/fleek.config.ts.tmpl' }
src/utils/configuration/saveConfiguration.test.ts > The saveConfiguration utils > on valid arguments (typescript) > should have certain content properties: src/utils/configuration/saveConfiguration.test.ts#L18
Error: Oops! Config file path not set. ❯ clearConfigFile src/utils/configuration/saveConfiguration.test.ts:18:30 ❯ src/utils/configuration/saveConfiguration.test.ts:120:15