We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48e9542 commit a5ebeb6Copy full SHA for a5ebeb6
test/index.test.js
@@ -68,6 +68,18 @@ describe('Uploader Core', () => {
68
expect(log).toHaveBeenCalledWith(expect.stringMatching(/<<<<<< ENV/))
69
})
70
71
+ it('Can upload without token', async () => {
72
+ jest.spyOn(process, 'exit').mockImplementation(() => {})
73
+ const log = jest.spyOn(console, 'log').mockImplementation(() => {})
74
+ await app.main({
75
+ name: 'customname',
76
+ url: 'https://codecov.io',
77
+ dryRun: true,
78
+ env: 'SOMETHING,ANOTHER',
79
+ })
80
+ expect(log).toHaveBeenCalledWith(expect.stringMatching('-> No token specified or token is empty'))
81
82
+
83
describe('Flags', () => {
84
it('can upload with flags', async () => {
85
process.env.CI = 'true'
0 commit comments