Skip to content

Commit

Permalink
tests(watch): remove test.only for info-verbosity-off
Browse files Browse the repository at this point in the history
  • Loading branch information
hemal7735 authored and evenstensberg committed Feb 5, 2019
1 parent 18bde78 commit 675d5c0
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ beforeEach(() => {

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

// It is modifying the index.js
// Which breaks the test-cases second time
test.only("info-verbosity-off", async done => {
test("info-verbosity-off", async done => {
var webpackProc = runAndGetWatchProc(__dirname, [
"--entry ",
"./index.js",
Expand Down Expand Up @@ -85,6 +83,6 @@ test.only("info-verbosity-off", async done => {

webpackProc.stderr.on("data", error => {
// fail test case if there is any error
done(error);
done(error.toString());
});
});

0 comments on commit 675d5c0

Please sign in to comment.