test: fix

This commit is contained in:
alexander.akait 2024-09-26 17:13:02 +03:00
parent 44456d095e
commit 3316bf7e8e
4 changed files with 7 additions and 8 deletions

View File

@ -1,3 +0,0 @@
module.exports = function (config) {
return !/^v(4|6)/.test(process.version);
};

View File

@ -1,3 +0,0 @@
module.exports = function (config) {
return !/^v(4|6)/.test(process.version);
};

View File

@ -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");
});

View File

@ -0,0 +1,5 @@
module.exports = function (config) {
const [major] = process.versions.node.split(".").map(Number);
return major >= 18;
};