mirror of https://github.com/webpack/webpack.git
test: fix
This commit is contained in:
parent
44456d095e
commit
3316bf7e8e
|
|
@ -1,3 +0,0 @@
|
|||
module.exports = function (config) {
|
||||
return !/^v(4|6)/.test(process.version);
|
||||
};
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
module.exports = function (config) {
|
||||
return !/^v(4|6)/.test(process.version);
|
||||
};
|
||||
|
|
@ -2,6 +2,6 @@ import * as styles from './style.module.css';
|
|||
import * as styles1 from './module.js';
|
||||
|
||||
it("should not deadlock when using importModule", () => {
|
||||
expect(styles).toMatchObject({ "someBottom": "8px" });
|
||||
expect(styles1).toMatchObject({ "someBottom": "8px" });
|
||||
expect(styles.someBottom).toBe("8px");
|
||||
expect(styles1.someBottom).toBe("8px");
|
||||
});
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
module.exports = function (config) {
|
||||
const [major] = process.versions.node.split(".").map(Number);
|
||||
|
||||
return major >= 18;
|
||||
};
|
||||
Loading…
Reference in New Issue