Skip to content

Commit d1e23f5

Browse files
committed
fixup! test: run e2e tests on pre-compiled packages
1 parent 30bac2c commit d1e23f5

File tree

1 file changed

+1
-3
lines changed
  • tests/legacy-cli/e2e/utils

1 file changed

+1
-3
lines changed

tests/legacy-cli/e2e/utils/tar.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,14 @@ import { Parse } from 'tar';
1919
*/
2020
export async function extractFile(tarball: string, filePath: string): Promise<Buffer> {
2121
return new Promise((resolve, reject) => {
22-
let chunks: Buffer[] | null = null;
23-
2422
fs.createReadStream(tarball)
2523
.pipe(
2624
new Parse({
2725
strict: true,
2826
filter: (p) => normalize(p) === normalize(filePath),
2927
// TODO: @types/tar 'entry' does not have ReadEntry.on
3028
onentry: (entry: any) => {
31-
chunks = [];
29+
const chunks: Buffer[] = [];
3230

3331
entry.on('data', (chunk: any) => chunks!.push(chunk));
3432
entry.on('error', reject);

0 commit comments

Comments
 (0)