Skip to content

Commit f26bf54

Browse files
authored
test: remove copy plugin build folder (#8251)
1 parent 85bb238 commit f26bf54

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+6
-26
lines changed

β€Ž.gitignoreβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ tests/plugin-test/css-extract/js
223223

224224
tests/plugin-test/html-plugin/js
225225

226+
tests/plugin-test/copy-plugin/build
227+
226228
/webpack-examples/**/dist
227229

228230
smoke-example

β€Žtests/plugin-test/copy-plugin/CopyPlugin.test.jsβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@ const rspack = require("@rspack/core");
66
const { run, runEmit, runChange } = require("./helpers/run");
77

88
const { readAssets, getCompiler, compile } = require("./helpers");
9+
const rimraf = require("rimraf");
910

1011
const FIXTURES_DIR = path.join(__dirname, "fixtures");
1112

1213
describe("CopyPlugin", () => {
14+
beforeEach(() => {
15+
rimraf.sync(path.join(__dirname, "build"));
16+
});
1317
describe("basic", () => {
1418
it("should copy a file", done => {
1519
runEmit({

β€Žtests/plugin-test/copy-plugin/build/.dottedfileβ€Ž

Lines changed: 0 additions & 1 deletion
This file was deleted.

β€Žtests/plugin-test/copy-plugin/build/.gitkeepβ€Ž

Whitespace-only changes.

β€Žtests/plugin-test/copy-plugin/build/_t1/dest1/tempfile1.txtβ€Ž

Lines changed: 0 additions & 1 deletion
This file was deleted.

β€Žtests/plugin-test/copy-plugin/build/_t1/dest2/directory/tempfile1.txtβ€Ž

Lines changed: 0 additions & 1 deletion
This file was deleted.

β€Žtests/plugin-test/copy-plugin/build/_t1/dest2/tempfile2.txtβ€Ž

Lines changed: 0 additions & 1 deletion
This file was deleted.

β€Žtests/plugin-test/copy-plugin/build/_t2/dest1/tempfile1.txtβ€Ž

Lines changed: 0 additions & 1 deletion
This file was deleted.

β€Žtests/plugin-test/copy-plugin/build/_t2/dest1/tempfile2.txtβ€Ž

Lines changed: 0 additions & 1 deletion
This file was deleted.

β€Žtests/plugin-test/copy-plugin/build/_t2/dest2/tempfile1.txtβ€Ž

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
Β (0)