Skip to content

Tests fix

8e0c5c6
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

chore: dependency update #452

Tests fix
8e0c5c6
Select commit
Loading
Failed to load commit list.
GitHub Actions / Mocha Unit Test failed Feb 10, 2026 in 0s

60 passed, 1 failed and 0 skipped

Tests failed

❌ report.json

61 tests were completed in 4s with 60 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
test/unit/commands/app/create.test.ts 8✅ 3s
test/unit/commands/app/delete.test.ts 2✅ 1❌ 56ms
test/unit/commands/app/deploy.test.ts 5✅ 71ms
test/unit/commands/app/get.test.ts 5✅ 50ms
test/unit/commands/app/install.test.ts 4✅ 70ms
test/unit/commands/app/reinstall.test.ts 5✅ 85ms
test/unit/commands/app/uninstall.test.ts 9✅ 185ms
test/unit/commands/app/update.test.ts 8✅ 93ms
test/unit/util/common-utils.test.ts 5✅ 22ms
test/unit/util/inquirer.test.ts 9✅ 8ms

✅ test/unit/commands/app/create.test.ts

app:create App creation should fail and rollback
  ✅ App creation should fail and rollback
app:create App creation with duplicate app name
  ✅ should fail when app name already exists
app:create App creation with organization UID instead of app UID
  ✅ should fail when organization UID is used instead of app data
app:create Creating a stack app using a boilerplate flow
  ✅ should create a stack-level app
app:create Creating an app without boilerplate
  ✅ should create a stack-level app
app:create Creating an organization app using a boilerplate flow
  ✅ should create an organization-level app
app:create Dependency installation failure
  ✅ dependency install step should fail
app:create Pass external config using '--config' flag
  ✅ App creation should fail!

❌ test/unit/commands/app/delete.test.ts

app:delete app:delete error handling
  ❌ should throw an error while deleting the app
	expected 'warn: Some error occurred while fetch…' to include 'Contact the support team for help.'
app:delete app:delete using inquirer prompts
  ✅ should delete the app
app:delete app:delete with --org and --app-uid flags
  ✅ should print an error saying that app is already installed

✅ test/unit/commands/app/deploy.test.ts

app:deploy Deploy an app with custom hosting
  ✅ should deploy the app with custom hosting
app:deploy Deploy an app with custom hosting using flags in command
  ✅ should deploy the app with custom hosting using flags in command
app:deploy Deploy an app with Hosting with Launch with existing project
  ✅ should deploy the app with Hosting with Launch with existing project
app:deploy Deploy app error handling
  ✅ should fail with invalid hosting type
  ✅ should handle new project creation with hosting-with-launch

✅ test/unit/commands/app/get.test.ts

app:get Ask confirmation if `manifest.json` exists and go with `No` option
  ✅ Should overwrite config file
app:get Ask confirmation if `manifest.json` exists and go with `Yes` option
  ✅ Should create config file with the +1 mechanism
app:get Get app manifest
  ✅ should return manifest for selected app
app:get Get app manifest with app uid
  ✅ should return manifest for specific uid passed
app:get Pass wrong org uid through flag
  ✅ should fail with error message

✅ test/unit/commands/app/install.test.ts

app:install App is already installed
  ✅ should fail with an error that app is already installed
app:install Install an app on a stack
  ✅ should install a stack app
app:install Install an app on organization
  ✅ should install an organization app
app:install Stack API Key and App ID provided through flags
  ✅ should install a stack app

✅ test/unit/commands/app/reinstall.test.ts

app:reinstall App is already latest version
  ✅ should fail with an error that already using the latest version
app:reinstall Reinstall an app on a stack
  ✅ should reinstall a stack app
app:reinstall Reinstall an app on organization
  ✅ should reinstall an organization app
app:reinstall Show error when stack is not selected
  ✅ should display an error message when trying to reinstall a stack app without selecting a stack
app:reinstall Stack API Key and App ID provided through flags
  ✅ should reinstall a stack app

✅ test/unit/commands/app/uninstall.test.ts

app:uninstall App uninstall with invalid installation UID
  ✅ should fail when installation UID is invalid
app:uninstall App uninstall with organization UID instead of app UID
  ✅ should fail when organization UID is used instead of app UID
app:uninstall App uninstall with permission denied
  ✅ should fail when user lacks permission
app:uninstall Fail to uninstall an app from a stack
  ✅ should fail with an error
app:uninstall Uninstall all apps error handling
  ✅ should handle partial uninstall failures in uninstall-all
app:uninstall Uninstall all apps using --uninstall-all flag
  ✅ should handle uninstall-all with organization app
  ✅ should successfully uninstall all apps using uninstall-all strategy
app:uninstall Uninstall an app from a stack
  ✅ should uninstall a stack app
app:uninstall Uninstall an app from organization
  ✅ should uninstall an organization app

✅ test/unit/commands/app/update.test.ts

app:update Update app API failure
  ✅ update app should fail with 403 status code
app:update Update app with `--app-manifest` flag
  ✅ should update an app
app:update Update app with duplicate app name (409 status)
  ✅ should fail with duplicate app name error (409 status)
app:update Update app with organization UID instead of app UID
  ✅ should fail when organization UID is passed instead of app UID
app:update Update app with wrong `app version`
  ✅ should fail with version mismatch error message
app:update Update app with wrong `app-uid`
  ✅ should fail uid not matching
app:update Update app with wrong `manifest.json` path
  ✅ should fail with manifest max retry message
app:update Update app with wrong app-uid API failure
  ✅ update app should fail with 400 status code

✅ test/unit/util/common-utils.test.ts

common utils fetchApps Get apps API fail case
  ✅ Returns error code with 400
common utils fetchApps Get list of apps
  ✅ Returns list of apps
common utils getOrganizations Get list of organizations
  ✅ Returns list of organizations
common utils getOrganizations Get organizations failure case
  ✅ API fails with status code 400
common utils getOrganizations Get organizations with pagination
  ✅ Returns list of organizations with pagination

✅ test/unit/util/inquirer.test.ts

Utility Functions getAppName Check user input length validation
  ✅ should return validation message for short input
Utility Functions getAppName show prompt to get name from user
  ✅ should return the name provided by the user
Utility Functions getDeveloperHubUrl Get developer hub base URL
  ✅ should return the developer hub base URL
Utility Functions getDeveloperHubUrl Validate marketplace URL if empty
  ✅ should print URL validation message and ask for new input
Utility Functions getDirName Check directory length validation
  ✅ should return validation message for short input
Utility Functions getDirName Show prompt to get directory name from user
  ✅ should return the directory name provided by the user
Utility Functions getDirName Validate if provided directory exists
  ✅ should return validation message if directory already exists
Utility Functions getOrg Passing wrong organization uid through flag
  ✅ should fail with error `org uid not found`
Utility Functions getOrg Select an organization from list
  ✅ should return the organization UID

Annotations

Check failure on line 107 in test/unit/commands/app/delete.test.ts

See this annotation in the file changed.

@github-actions github-actions / Mocha Unit Test

test/unit/commands/app/delete.test.ts ► app:delete app:delete error handling ► should throw an error while deleting the app

Failed test found in:
  report.json
Error:
  expected 'warn: Some error occurred while fetch…' to include 'Contact the support team for help.'
Raw output
AssertionError: expected 'warn: Some error occurred while fetch…' to include 'Contact the support team for help.'
    at Context.<anonymous> (test/unit/commands/app/delete.test.ts:107:25)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)