Skip to content

Commit

Permalink
Merge pull request #573 from ebkr/develop
Browse files Browse the repository at this point in the history
Updated to resolve type errors and skip lib issues caused by @types/jest
  • Loading branch information
ebkr committed Jul 1, 2021
2 parents 3a8ec1b + 343868a commit 57d383c
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 508 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
"@types/async-lock": "^1.1.2",
"@types/chai": "^4.2.11",
"@types/fs-extra": "^8.0.1",
"@types/mocha": "^7.0.2",
"@types/node": "^12.12.12",
"@types/quill": "^2.0.3",
"@types/sinon": "^10.0.2",
Expand Down
4 changes: 2 additions & 2 deletions src/providers/generic/zip/AdmZipProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ export default class AdmZipProvider extends ZipProvider {

async getEntries(zip: string | Buffer): Promise<ZipEntryInterface[]> {
const adm = new AdmZip(zip);
return adm.getEntries();
return (adm.getEntries() as unknown as ZipEntryInterface[]);
}

async extractEntryTo(zip: string | Buffer, target: string, outputPath: string): Promise<void> {
const adm = new AdmZip(zip);
return this.sanitizedExtraction(adm.getEntry(target), outputPath);
return this.sanitizedExtraction(adm.getEntry(target)!, outputPath);
}

private async sanitizedExtraction(entry: IZipEntry, outputPath: string): Promise<void> {
Expand Down
34 changes: 0 additions & 34 deletions tests/test-setup.test.ts

This file was deleted.

103 changes: 0 additions & 103 deletions tests/unit/_providers/Providers.test.ts

This file was deleted.

66 changes: 0 additions & 66 deletions tests/unit/configs/ConfigSort.test.ts

This file was deleted.

48 changes: 0 additions & 48 deletions tests/unit/data/LogOutput.test.ts

This file was deleted.

Loading

0 comments on commit 57d383c

Please sign in to comment.