Skip to content

Commit

Permalink
fix: make lm:setup test pass (#5980)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skn0tt committed Sep 5, 2023
1 parent 6afe7bd commit 40b3e78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/commands/lm/lm-setup.mjs
Expand Up @@ -57,7 +57,7 @@ const configureLFSURL = async function (siteId, api) {
* @param {import('../base-command.mjs').default} command
*/
const lmSetup = async (options, command) => {
if (!options.force && !options.f) {
if (!options.force) {
const { wantsToProceed } = await inquirer.prompt({
type: 'confirm',
name: 'wantsToProceed',
Expand Down Expand Up @@ -115,5 +115,6 @@ export const createLmSetupCommand = (program) =>
.description('Configures your site to use Netlify Large Media')
.option('-s, --skip-install', 'Skip the credentials helper installation check')
.option('-f, --force-install', 'Force the credentials helper installation')
.option('--force', 'Skip deprecation check')
.addHelpText('after', 'It runs the install command if you have not installed the dependencies yet.')
.action(lmSetup)
2 changes: 1 addition & 1 deletion tests/integration/commands/lm/lm.test.ts
Expand Up @@ -91,7 +91,7 @@ describe('lm command', () => {
})

test<FixtureTestContext>('netlify lm:setup', async ({ fixture }) => {
const cliResponse = await fixture.callCli(['lm:setup'], { offline: false, execOptions })
const cliResponse = await fixture.callCli(['lm:setup', '--force'], { offline: false, execOptions })
expect(cliResponse).toContain('Provisioning Netlify Large Media [started]')
expect(cliResponse).toContain('Provisioning Netlify Large Media [completed]')
expect(cliResponse).toContain('Configuring Git LFS for this site [started]')
Expand Down

2 comments on commit 40b3e78

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Dependency count: 1,331
  • Package size: 295 MB

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Dependency count: 1,331
  • Package size: 295 MB

Please sign in to comment.