-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: remove test coverage around
--key
flag
these tests were duplicative and felt out of scope of the command tests. will add proper top-level coverage for this! also, couldn't figure out a good way to add coverage in commands without running into weird flakiness and race conditions.
- Loading branch information
1 parent
efb7f9f
commit 4e92554
Showing
14 changed files
with
0 additions
and
174 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,13 +40,6 @@ describe('rdme docs', () => { | |
|
||
afterAll(() => nock.cleanAll()); | ||
|
||
it('should prompt for login if no API key provided', async () => { | ||
const consoleInfoSpy = vi.spyOn(console, 'info').mockImplementation(() => {}); | ||
prompts.inject(['this-is-not-an-email', 'password', 'subdomain']); | ||
await expect(run()).rejects.toStrictEqual(new Error('You must provide a valid email address.')); | ||
consoleInfoSpy.mockRestore(); | ||
}); | ||
|
||
it('should successfully log in user via prompts if API key is not provided', async () => { | ||
const email = '[email protected]'; | ||
const password = 'pass123'; | ||
|
@@ -623,10 +616,6 @@ describe('rdme docs', () => { | |
|
||
afterEach(afterGHAEnv); | ||
|
||
it('should error in CI if no API key provided', () => { | ||
return expect(run()).rejects.toStrictEqual(new Error('No project API key provided. Please use `--key`.')); | ||
}); | ||
|
||
it('should sync new docs directory with correct headers', async () => { | ||
const slug = 'new-doc'; | ||
const id = '1234'; | ||
|
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
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