Skip to content

Commit b0dffe8

Browse files
authored
Fix docstring tests failing because of stale generated file (#8354)
1 parent 23fc6cc commit b0dffe8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

scripts/test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ if (runtimeDocstrings) {
166166
"generated_mocha_test.res",
167167
);
168168

169+
// This generated source file is checked during the initial build below, so
170+
// a stale copy from an earlier run can fail before we regenerate it.
171+
await fs.promises.rm(generated_mocha_test_res, { force: true });
172+
169173
await execClean([], {
170174
cwd: docstringTestDir,
171175
stdio: "inherit",

0 commit comments

Comments
 (0)