MCPcopy Create free account
hub / github.com/webpack/webpack-cli / dataForTests

Function dataForTests

test/create-webpack-app/plugin/plugin.test.js:18–32  ·  view source on GitHub ↗
(rootAssetsPath)

Source from the content-addressed store, hash-verified

16
17const firstPrompt = "? Plugin name";
18const 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
34describe("plugin command", () => {
35 it("should scaffold plugin with default name if no plugin name provided", async () => {

Callers 1

plugin.test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected