Skip to content

Commit 675d5c0

Browse files
hemal7735evenstensberg
authored andcommitted
tests(watch): remove test.only for info-verbosity-off
1 parent 18bde78 commit 675d5c0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/binCases/watch/info-verbosity-off/info-verbosity-off.test.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ beforeEach(() => {
2121

2222
afterEach(() => {
2323
try {
24-
// deleting the file as it is modified by the test
2524
// subsequent test-case runs won't pass as snapshot is not matched
25+
// hence, deleting the file as it is modified by the test
2626
fs.unlinkSync(fileToChangePath);
2727
} catch (e) {
2828
console.warn("could not remove the file:" + fileToChangePath + "\n" + e.message);
@@ -31,9 +31,7 @@ afterEach(() => {
3131
}
3232
});
3333

34-
// It is modifying the index.js
35-
// Which breaks the test-cases second time
36-
test.only("info-verbosity-off", async done => {
34+
test("info-verbosity-off", async done => {
3735
var webpackProc = runAndGetWatchProc(__dirname, [
3836
"--entry ",
3937
"./index.js",
@@ -85,6 +83,6 @@ test.only("info-verbosity-off", async done => {
8583

8684
webpackProc.stderr.on("data", error => {
8785
// fail test case if there is any error
88-
done(error);
86+
done(error.toString());
8987
});
9088
});

0 commit comments

Comments
 (0)