Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ tests/plugin-test/css-extract/js

tests/plugin-test/html-plugin/js

tests/plugin-test/copy-plugin/build

/webpack-examples/**/dist

smoke-example
Expand Down
4 changes: 4 additions & 0 deletions tests/plugin-test/copy-plugin/CopyPlugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ const rspack = require("@rspack/core");
const { run, runEmit, runChange } = require("./helpers/run");

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

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

describe("CopyPlugin", () => {
beforeEach(() => {
rimraf.sync(path.join(__dirname, "build"));
});
describe("basic", () => {
it("should copy a file", done => {
runEmit({
Expand Down
1 change: 0 additions & 1 deletion tests/plugin-test/copy-plugin/build/.dottedfile

This file was deleted.

Empty file.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Empty file.
Empty file.

This file was deleted.

Empty file.
1 change: 0 additions & 1 deletion tests/plugin-test/copy-plugin/build/directoryfile.txt

This file was deleted.

1 change: 0 additions & 1 deletion tests/plugin-test/copy-plugin/build/file.txt

This file was deleted.

1 change: 0 additions & 1 deletion tests/plugin-test/copy-plugin/build/file[1].txt

This file was deleted.

1 change: 0 additions & 1 deletion tests/plugin-test/copy-plugin/build/first/file.txt

This file was deleted.

1 change: 0 additions & 1 deletion tests/plugin-test/copy-plugin/build/main.js

This file was deleted.

Empty file.
Empty file.
Empty file.

This file was deleted.

Empty file.

This file was deleted.

This file was deleted.

Empty file.
Empty file.
1 change: 0 additions & 1 deletion tests/plugin-test/copy-plugin/build/newfile.txt

This file was deleted.

Empty file.
1 change: 0 additions & 1 deletion tests/plugin-test/copy-plugin/build/second/file.txt

This file was deleted.

1 change: 0 additions & 1 deletion tests/plugin-test/copy-plugin/build/tempfile1.txt

This file was deleted.

1 change: 0 additions & 1 deletion tests/plugin-test/copy-plugin/build/tempfile2.txt

This file was deleted.

2 changes: 0 additions & 2 deletions tests/plugin-test/copy-plugin/build/unoptimized.js

This file was deleted.

1 change: 0 additions & 1 deletion tests/plugin-test/copy-plugin/helpers/getCompiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ module.exports = (config = {}) => {
context: path.resolve(__dirname, "../fixtures"),
entry: path.resolve(__dirname, "../helpers/enter.js"),
output: {
compareBeforeEmit: false,
path: path.resolve(__dirname, "../build")
},
module: {
Expand Down
Loading