Skip to content

Commit 0dacd45

Browse files
test: debug
1 parent ad08607 commit 0dacd45

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

test/create-webpack-app/init/init.test.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ describe("create-webpack-app cli", () => {
117117
expect(readFromWebpackConfig(dir)).toMatchSnapshot();
118118
});
119119

120-
it("should generate default project when nothing is passed and handle conflicts", async () => {
120+
// eslint-disable-next-line jest/no-focused-tests
121+
it.only("should generate default project when nothing is passed and handle conflicts", async () => {
121122
const { stdout } = await run(dir, ["init", "--force"]);
122123

123124
expect(stdout).toContain("Project has been initialised with webpack!");
@@ -133,7 +134,7 @@ describe("create-webpack-app cli", () => {
133134
// Check if the generated webpack configuration matches the snapshot
134135
expect(readFromWebpackConfig(dir)).toMatchSnapshot();
135136

136-
await runPromptWithAnswers(
137+
const { stdout: nextStdout } = await runPromptWithAnswers(
137138
dir,
138139
["init"],
139140
[
@@ -150,6 +151,8 @@ describe("create-webpack-app cli", () => {
150151
],
151152
);
152153

154+
console.log(nextStdout);
155+
153156
for (const file of defaultTemplateFiles) {
154157
expect(existsSync(resolve(dir, file))).toBeTruthy();
155158
}

0 commit comments

Comments
 (0)