Skip to content

Commit

Permalink
Update tests to expect --env to node foreman
Browse files Browse the repository at this point in the history
  • Loading branch information
eablack committed Mar 8, 2024
1 parent edce4ac commit 8400161
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/cli/test/unit/commands/local/index.unit.test.ts
Expand Up @@ -17,7 +17,7 @@ describe('local', () => {
.stub(foreman, 'fork', function () {
// eslint-disable-next-line prefer-rest-params
const argv = arguments[0]
expect(argv).is.eql(['start', 'web,other'])
expect(argv).is.eql(['start', '--env', '.env', 'web,other'])
})
.command(['local:start'])
.it('can call foreman start via the local:start alias')
Expand All @@ -37,7 +37,7 @@ describe('local', () => {
})
.stub(foreman, 'fork', function () {
// eslint-disable-next-line prefer-rest-params
expect(arguments[0]).is.eql(['start', 'web,other'])
expect(arguments[0]).is.eql(['start', '--env', '.env', 'web,other'])
})
.command(['local'])
.it('can call foreman start with no arguments')
Expand All @@ -58,7 +58,7 @@ describe('local', () => {
.stub(foreman, 'fork', function () {
// eslint-disable-next-line prefer-rest-params
const argv = arguments[0]
expect(argv).is.eql(['start', '--procfile', 'Procfile.other', 'web,background'])
expect(argv).is.eql(['start', '--procfile', 'Procfile.other', '--env', '.env', 'web,background'])
expect(argv).to.not.include('release', 'the release process is not included')
})
.command(['local', '--procfile', 'Procfile.other'])
Expand Down Expand Up @@ -103,7 +103,7 @@ describe('local', () => {
.stub(foreman, 'fork', function () {
// eslint-disable-next-line prefer-rest-params
const argv = arguments[0]
expect(argv).is.eql(['start', 'web,other'])
expect(argv).is.eql(['start', '--env', '.env', 'web,other'])
})
.command(['local', 'web,other'])
.it('can call foreman start with only arguments')
Expand Down

0 comments on commit 8400161

Please sign in to comment.