File tree Expand file tree Collapse file tree
test/create-webpack-app/init Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments