Skip to content
Open
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
5 changes: 3 additions & 2 deletions tests/unit/commands/database/db-status.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { relative, sep } from 'path'

import { describe, expect, test, vi, beforeEach, afterEach } from 'vitest'
import stripAnsi from 'strip-ansi'

const {
mockReaddir,
Expand Down Expand Up @@ -615,12 +616,12 @@ describe('statusDb', () => {
await statusDb({}, createMockCommand())

const output = logMessages.join('\n')
expect(output).toContain('Install the @netlify/database package and deploy your site')
expect(stripAnsi(output)).toContain('Install the @netlify/database package and deploy your site')
})

test('renders an installed statement under Package when installed', async () => {
await statusDb({}, createMockCommand())
expect(logMessages.join('\n')).toContain('The @netlify/database package is installed')
expect(stripAnsi(logMessages.join('\n'))).toContain('The @netlify/database package is installed')
})

test('renders an API-reference link under Package when installed', async () => {
Expand Down