Skip to content

Commit d83e240

Browse files
committed
fix: static-directory.test.js test
1 parent c049129 commit d83e240

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/e2e/static-directory.test.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ test.describe("static.directory option", () => {
9797
expect(pageErrors).toMatchSnapshotWithArray("page errors");
9898
});
9999

100-
test("Watches folder recursively", () => {
100+
test("Watches folder recursively", ({ done }) => {
101101
// chokidar emitted a change,
102102
// meaning it watched the file correctly
103-
server.staticWatchers[0].on("change", (event) => {
104-
console.log(event);
103+
server.staticWatchers[0].on("change", () => {
104+
done();
105105
});
106106

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

113-
test.fixme(
113+
test(
114114
"Watches node_modules",
115-
{ tag: "@fails" },
116115
({ done }) => {
117116
const filePath = path.join(
118117
publicDirectory,

0 commit comments

Comments
 (0)