test: fix

This commit is contained in:
alexander.akait 2024-11-15 21:17:12 +03:00
parent 71ea450287
commit 2c00999301
5 changed files with 7 additions and 3 deletions

View File

@ -52,7 +52,7 @@ module.exports = {
"B-2Index": "0: ./B-2.js",
BIndex: "0: ./B.js",
mainIndex: "0: ./main.js",
sharedIndex: "0: ./shared.js, 1: css ./m.css, 2: css ./n.css"
sharedIndex: "1: css ./m.css"
});
});
};

View File

@ -44,7 +44,7 @@ module.exports = {
data[`${name}Index`] = text;
}
expect(data).toEqual({
dynamicIndex: "0: css ./a.css, 1: css ./b.css, 2: ./dynamic.js",
dynamicIndex: "0: css ./a.css",
mainIndex: "0: ./index.js"
});
});

View File

@ -15,5 +15,8 @@ it("should allow to create css modules", done => {
});
it("should allow to process tailwind as global css", done => {
prod
? __non_webpack_require__("./382.bundle1.js")
: __non_webpack_require__("./tailwind_min_css.bundle0.js");
import("./tailwind.min.css").then(() => done(), done);
});

View File

@ -25,6 +25,6 @@ module.exports = {
throw new Error("The `pathinfo` option doesn't work.");
}
return "./bundle0.js";
return ["./style2_css.bundle0.js", "./bundle0.js"];
}
};

View File

@ -1,4 +1,5 @@
it("should allow to dynamic import a css module", done => {
__non_webpack_require__("./style_module_css.bundle0.js");
import("./style.module.css").then(x => {
try {
expect(x).toEqual(