Skip to content

Commit fa5b8da

Browse files
committed
fix test cases
1 parent bcbf397 commit fa5b8da

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/test/dockerfilePreprocessor.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ describe('dockerfilePreprocessor', function () {
134134
const generatedPath = path.join(tmpDir, 'build', 'Dockerfile');
135135
const scriptPath = path.join(tmpDir, 'write-output.sh');
136136
await fs.writeFile(inputPath, 'FROM alpine:3.20\n');
137+
await fs.mkdir(path.dirname(generatedPath), { recursive: true });
137138
await fs.writeFile(scriptPath, '#!/bin/sh\nset -eu\nprintf "FROM busybox\\n" > "$2"\n');
138139
await fs.chmod(scriptPath, 0o755);
139140

0 commit comments

Comments
 (0)