-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: specify project api version * refactor: clearer type for apiVersion * docs: sample for api version * refactor: remove unnecessary type * refactor: ts exclusions for project options * chore: remove copyright bits * refactor: no string formatter for api version * fix: small bug fixes * chore: update test --------- Co-authored-by: Steve Hetzel <[email protected]>
- Loading branch information
Showing
7 changed files
with
100 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright (c) 2023, salesforce.com, inc. | ||
* All rights reserved. | ||
* Licensed under the BSD 3-Clause license. | ||
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause | ||
*/ | ||
import { execCmd } from '../src/execCmd'; | ||
import { TestSession } from '../src/testSession'; | ||
|
||
describe('TestSession', () => { | ||
let testSession: TestSession; | ||
|
||
before(async () => { | ||
testSession = await TestSession.create({ | ||
project: { | ||
name: 'MyTestProject', | ||
apiVersion: '57.0', | ||
}, | ||
}); | ||
}); | ||
|
||
it('should run a command from within a generated project', () => { | ||
execCmd('project:convert:source', { ensureExitCode: 0 }); | ||
}); | ||
|
||
after(async () => { | ||
await testSession?.clean(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters