Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/commands/deploy/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -793,9 +793,7 @@ const printResults = ({
logs: results.logsUrl,
function_logs: results.functionLogsUrl,
edge_function_logs: results.edgeFunctionLogsUrl,
}
if (deployToProduction) {
jsonData.url = results.siteUrl
url: results.siteUrl,
}

if (uploadSourceZip) {
Expand Down
4 changes: 3 additions & 1 deletion tests/integration/commands/deploy/deploy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
logs: string
function_logs: string
edge_function_logs: string
url: string
}

const validateDeploy = async ({
Expand All @@ -76,9 +77,10 @@
expect(deploy.logs).toBeTruthy()
expect(deploy.function_logs).toBeTruthy()
expect(deploy.edge_function_logs).toBeTruthy()
expect(deploy.url).toBeTruthy()
expect(deploy.site_name).toEqual(siteName)

await validateContent({ siteUrl: deploy.deploy_url, path: '', content })
await validateContent({ siteUrl: deploy.deploy_url, url: deploy.siteUrl, path: '', content })

Check failure on line 83 in tests/integration/commands/deploy/deploy.test.ts

View workflow job for this annotation

GitHub Actions / typecheck

Property 'siteUrl' does not exist on type 'Deploy'.

Check failure on line 83 in tests/integration/commands/deploy/deploy.test.ts

View workflow job for this annotation

GitHub Actions / typecheck

Object literal may only specify known properties, and 'url' does not exist in type '{ content?: string | undefined; headers?: Record<string, string> | undefined; path: string; pathname?: string | undefined; siteUrl: string; }'.
}

const context: { account: unknown; siteId: string } = {
Expand Down Expand Up @@ -505,7 +507,7 @@
})
})

test('should include stdout and stderr when build fails with --json --verbose options', async (t) => {

Check failure on line 510 in tests/integration/commands/deploy/deploy.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 22, 4/4)

tests/integration/commands/deploy/deploy.test.ts > commands/deploy > should include stdout and stderr when build fails with --json --verbose options

Error: Test timed out in 90000ms. If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout". ❯ tests/integration/commands/deploy/deploy.test.ts:510:3

Check failure on line 510 in tests/integration/commands/deploy/deploy.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 22, 4/4)

tests/integration/commands/deploy/deploy.test.ts > commands/deploy > should include stdout and stderr when build fails with --json --verbose options

Error: Test timed out in 90000ms. If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout". ❯ tests/integration/commands/deploy/deploy.test.ts:510:3

Check failure on line 510 in tests/integration/commands/deploy/deploy.test.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 22, 4/4)

tests/integration/commands/deploy/deploy.test.ts > commands/deploy > should include stdout and stderr when build fails with --json --verbose options

Error: Test timed out in 90000ms. If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout". ❯ tests/integration/commands/deploy/deploy.test.ts:510:3
await withSiteBuilder(t, async (builder) => {
builder
.withContentFile({
Expand Down
Loading