| 16 | |
| 17 | const firstPrompt = "? Plugin name"; |
| 18 | const dataForTests = (rootAssetsPath) => ({ |
| 19 | pluginName: "test-plugin", |
| 20 | pluginPath: join(rootAssetsPath, "test-plugin"), |
| 21 | defaultPluginPath: join(rootAssetsPath, "my-webpack-plugin"), |
| 22 | genPath: join(rootAssetsPath, "test-assets"), |
| 23 | customPluginPath: join(rootAssetsPath, "test-assets", "test-plugin"), |
| 24 | defaultTemplateFiles: [ |
| 25 | "package.json", |
| 26 | "examples", |
| 27 | "src", |
| 28 | "test", |
| 29 | "src/index.js", |
| 30 | "examples/simple/webpack.config.js", |
| 31 | ], |
| 32 | }); |
| 33 | |
| 34 | describe("plugin command", () => { |
| 35 | it("should scaffold plugin with default name if no plugin name provided", async () => { |