Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
h-a-n-a committed Jan 9, 2024
1 parent 78f7d30 commit c7c598e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
12 changes: 3 additions & 9 deletions packages/playground/cases/file/missing-files/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,8 @@ test("missing files should be able to recover if being added back", async ({
() => "export const b = 'missing-file-2'"
);

await expect(page.locator("#missing-file-1")).toHaveText("missing-file-1", {
timeout: 30 * 1000
});
await expect(page.locator("#missing-file-2")).toHaveText("missing-file-2", {
timeout: 30 * 1000
});
await expect(page.locator("#missing-file-1")).toHaveText("missing-file-1");
await expect(page.locator("#missing-file-2")).toHaveText("missing-file-2");

fileAction.deleteFile("src/missing-file-1.js");

Expand All @@ -40,7 +36,5 @@ test("missing files should be able to recover if being added back", async ({
() => "export const a = 'missing-file-1'"
);

await expect(page.locator("#missing-file-1")).toHaveText("missing-file-1", {
timeout: 30 * 1000
});
await expect(page.locator("#missing-file-1")).toHaveText("missing-file-1");
});
4 changes: 0 additions & 4 deletions packages/rspack/src/Watching.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,6 @@ export class Watching {
if (err) return handleError(err, cbs);
// @ts-expect-error
this.handler(null, stats);
console.log(
[...compilation.fileDependencies],
[...compilation.missingDependencies]
);

process.nextTick(() => {
if (!this.#closed) {
Expand Down
11 changes: 8 additions & 3 deletions packages/rspack/tests/MultiCompiler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,10 +488,15 @@ describe("MultiCompiler", function () {

compiler.watch({}, err => {
if (err) {
done(err);
} else {
done();
compiler.close(() => {
done(err);
});
return;
}
compiler.close(err => {
if (err) return done(err);
done();
});
});
}, 20000);

Expand Down

0 comments on commit c7c598e

Please sign in to comment.