Skip to content

Commit 6143875

Browse files
authored
ci: remove openssl-legacy-provider flag (#6469)
1 parent 8049970 commit 6143875

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

packages/rspack-test-tools/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"dev": "tsc -b -w",
1919
"test": "sh -c 'run-s \"test:* -- $*\"' sh",
2020
"testu": "sh -c 'run-s \"test:* -- $*\"' sh -u",
21-
"test:base": "cross-env NODE_OPTIONS=--openssl-legacy-provider NO_COLOR=1 node --expose-gc --max-old-space-size=8192 --experimental-vm-modules ../../node_modules/jest-cli/bin/jest --logHeapUsage --config ./jest.config.js --passWithNoTests",
21+
"test:base": "cross-env NO_COLOR=1 node --expose-gc --max-old-space-size=8192 --experimental-vm-modules ../../node_modules/jest-cli/bin/jest --logHeapUsage --config ./jest.config.js --passWithNoTests",
2222
"test:hot": "cross-env RSPACK_HOT_TEST=true NO_COLOR=1 node --expose-gc --max-old-space-size=8192 --experimental-vm-modules ../../node_modules/jest-cli/bin/jest --logHeapUsage --config ./jest.config.hot.js --passWithNoTests",
2323
"test:diff": "cross-env RSPACK_DIFF=true NO_COLOR=1 node --expose-gc --max-old-space-size=8192 --experimental-vm-modules ../../node_modules/jest-cli/bin/jest --logHeapUsage --config ./jest.config.diff.js --passWithNoTests",
2424
"api-extractor": "api-extractor run --verbose",
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import * as classes from "./style.module.css";
22
import legacyClasses from "./legacy/index.css";
33

4-
const crypto = require("crypto");
5-
const createHash = str => crypto.createHash('md4').update(str).digest('hex').slice(0, 20).replace(/^\d+/, "");
6-
74
it("should have consistent hash", () => {
8-
expect(classes["container-main"]).toBe(`${createHash("./style.module.css")}-container-main`)
9-
expect(legacyClasses["legacy-main"]).toBe(`${createHash("./legacy/index.css")}-legacy-main`)
5+
expect(classes["container-main"]).toBe(`${/* md4("./style.module.css") */ "ea850e6088d2566f677"}-container-main`)
6+
expect(legacyClasses["legacy-main"]).toBe(`${/* md4("./legacy/index.css") */ "c15d43fe622e87bbf5d"}-legacy-main`)
107
});

0 commit comments

Comments
 (0)