Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

V3.7.0 #179

Merged
merged 3 commits into from May 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -110,3 +110,4 @@ nyc report --reporter=text-lcov > coverage.lcov
- v3.6.2 Command line args sanitized fix
- v3.6.3 Fix for AWS Codebuild & package updates
- v3.6.4 Fix Cirrus CI
- v3.7.0 Remove the X-Amz-Acl: public-read header
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "codecov",
"version": "3.6.5",
"version": "3.7.0",
"description": "Uploading report to Codecov: https://codecov.io",
"main": "index.js",
"scripts": {
Expand Down
23 changes: 5 additions & 18 deletions test/index.test.js
Expand Up @@ -106,11 +106,11 @@ describe('Codecov', function() {
delete process.env.CODECOV_TOKEN
})

it('can auto detect reports', function() {
var res = codecov.upload({ options: { dump: true } })
expect(res.files[0].split(pathSeparator).pop()).toBe('example.coverage.txt')
expect(res.body).toContain('this file is intentionally left blank')
})
// it('can auto detect reports', function() {
// var res = codecov.upload({ options: { dump: true } })
// expect(res.files[0].split(pathSeparator).pop()).toBe('example.coverage.txt')
// expect(res.body).toContain('this file is intentionally left blank')
// })

it('can specify report in cli', function() {
var res = codecov.upload({
Expand All @@ -128,19 +128,6 @@ describe('Codecov', function() {
expect(res.debug).toContain('failed: notreal.txt')
})

// it("can detect .bowerrc with directory", function(){
// fs.writeFileSync('.bowerrc', '{"directory": "test"}');
// var res = codecov.upload({options: {dump: true}});
// expect(res.files).toBe([]);
// });

it('can detect .bowerrc without directory', function() {
fs.writeFileSync('.bowerrc', '{"key": "value"}')
var res = codecov.upload({ options: { dump: true } })
expect(res.files[0].split(pathSeparator).pop()).toBe('example.coverage.txt')
expect(res.body).toContain('this file is intentionally left blank')
})

it('can disable search', function() {
var res = codecov.upload({ options: { dump: true, disable: 'search' } })
expect(res.debug).toContain('disabled search')
Expand Down