Skip to content

Commit

Permalink
fix: static-directory.test.js test
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdikhashan committed Aug 9, 2024
1 parent c049129 commit d83e240
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/e2e/static-directory.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ test.describe("static.directory option", () => {
expect(pageErrors).toMatchSnapshotWithArray("page errors");
});

test("Watches folder recursively", () => {
test("Watches folder recursively", ({ done }) => {
// chokidar emitted a change,
// meaning it watched the file correctly
server.staticWatchers[0].on("change", (event) => {
console.log(event);
server.staticWatchers[0].on("change", () => {
done();
});

// change a file manually
Expand All @@ -110,9 +110,8 @@ test.describe("static.directory option", () => {
}, 1000);
});

test.fixme(
test(
"Watches node_modules",
{ tag: "@fails" },
({ done }) => {
const filePath = path.join(
publicDirectory,
Expand Down

0 comments on commit d83e240

Please sign in to comment.