Skip to content

Commit 0b7da8d

Browse files
committed
Apply suggestions
1 parent c415b64 commit 0b7da8d

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

packages/build/src/log/messages/core_steps.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export const logFunctionsToBundle = function ({
126126

127127
// Print the database provisioning message
128128
export const logDbProvisioning = function ({ logs, branch, context }) {
129-
log(logs, `Provisioning ${THEME.highlightWords('NetlifyDB')} database`)
129+
log(logs, `Provisioning database`)
130130

131131
if (context !== 'production') {
132132
log(logs, `Creating database branch for ${THEME.highlightWords(branch)}`)
@@ -140,7 +140,7 @@ export const logDbMigrations = function ({ logs, migrations, srcDir }) {
140140
return
141141
}
142142

143-
log(logs, `Copying migrations from ${THEME.highlightWords(srcDir)} directory:`)
143+
log(logs, `Loading migrations from ${THEME.highlightWords(srcDir)} directory:`)
144144
logArray(logs, migrations, { indent: false })
145145
}
146146

packages/build/src/plugins_core/db_setup/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const dbSetup: CoreStep = {
7777
event: 'onPreBuild',
7878
coreStep,
7979
coreStepId: 'db_provision',
80-
coreStepName: 'NetlifyDB setup',
81-
coreStepDescription: () => 'NetlifyDB setup',
80+
coreStepName: 'Netlify DB setup',
81+
coreStepDescription: () => 'Netlify DB setup',
8282
condition,
8383
}

packages/build/tests/db_setup/tests.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ test('Runs the db_setup core step and makes NETLIFY_DB_URL available to the buil
3636
context: 'production',
3737
})
3838

39-
t.true(output.includes('NetlifyDB setup completed'))
39+
t.true(output.includes('Netlify DB setup completed'))
4040
t.true(output.includes(MAIN_CONNECTION_STRING))
4141

4242
// Should call createSiteDatabase but not createSiteDatabaseBranch for production
@@ -52,7 +52,7 @@ test('Runs the db_setup core step and creates a database branch for non-producti
5252
{ context: 'deploy-preview' },
5353
)
5454

55-
t.true(output.includes('NetlifyDB setup completed'))
55+
t.true(output.includes('Netlify DB setup completed'))
5656
t.true(output.includes(BRANCH_CONNECTION_STRING))
5757

5858
// Should call both createSiteDatabase and createSiteDatabaseBranch for non-production
@@ -74,7 +74,7 @@ test('Does not run the db_setup core step when @netlify/db is not in dependencie
7474
} = await fixture.withFlags({ cwd: fixture.repositoryRoot, featureFlags: FEATURE_FLAGS }).runBuildProgrammatic()
7575

7676
t.true(success)
77-
t.false(stdout.join('\n').includes('NetlifyDB setup completed'))
77+
t.false(stdout.join('\n').includes('Netlify DB setup completed'))
7878
})
7979

8080
test('Does not run the db_setup core step when the feature flag is off', async (t) => {
@@ -86,14 +86,14 @@ test('Does not run the db_setup core step when the feature flag is off', async (
8686
} = await fixture.withFlags({ cwd: fixture.repositoryRoot }).runBuildProgrammatic()
8787

8888
t.true(success)
89-
t.false(stdout.join('\n').includes('NetlifyDB setup completed'))
89+
t.false(stdout.join('\n').includes('Netlify DB setup completed'))
9090
})
9191

9292
test('monorepo > Runs the db_setup core step when @netlify/db is in workspace devDependencies', async (t) => {
9393
const { output } = await runWithMockServer(
9494
new Fixture('./fixtures/monorepo').withFlags({ packagePath: 'apps/app-1' }),
9595
)
9696

97-
t.true(output.includes('NetlifyDB setup completed'))
97+
t.true(output.includes('Netlify DB setup completed'))
9898
t.true(output.includes(MAIN_CONNECTION_STRING))
9999
})

0 commit comments

Comments
 (0)