Skip to content

Commit 03033e6

Browse files
committed
test: remove debugging
1 parent fbd0d3e commit 03033e6

File tree

3 files changed

+1
-26
lines changed

3 files changed

+1
-26
lines changed

.storybook/main.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,6 @@ import type { Configuration } from 'webpack';
66
import TranslationsPlugin from '@box/frontend/webpack/TranslationsPlugin';
77
import { translationDependencies } from '../scripts/i18n.config';
88

9-
// Resolve issues with pipeline failures due to FIPS compliance
10-
// https://github.com/webpack/webpack/issues/13572#issuecomment-923736472
11-
const crypto = require('crypto'); // eslint-disable-line
12-
const crypto_createHash = crypto.createHash;
13-
crypto.createHash = algorithm => {
14-
console.log('setting crypto in main.ts:', algorithm);
15-
// Force all hash algorithms to use sha256 which is FIPS compliant
16-
return crypto_createHash('sha256');
17-
};
18-
19-
// Also patch the crypto module to handle other hash-related functions
20-
const originalDigest = crypto.createHash.prototype.digest;
21-
crypto.createHash.prototype.digest = function digest(encoding?: string): string | Buffer {
22-
console.log('intercepting digest call with encoding:', encoding);
23-
return originalDigest.call(this, encoding);
24-
};
25-
269
const language = process.env.LANGUAGE;
2710

2811
const config: StorybookConfig = {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"build:prod:dist": "NODE_ENV=production webpack --config scripts/webpack.config.js --mode production",
6262
"build:prod:es": "NODE_ENV=production BABEL_ENV=npm yarn build:es --source-maps --ignore \"**/*.d.ts,**/__tests__/**,**/__mocks__/**\"",
6363
"build:prod:npm": "BABEL_ENV=production OUTPUT=dist LANGUAGE=en-US REACT=true yarn build:prod:dist",
64-
"build:prod:storybook": "node scripts/test.js; NODE_ENV=production BABEL_ENV=production BROWSERSLIST_ENV=production LANGUAGE=en-US REACT=true storybook build -o storybook",
64+
"build:prod:storybook": "NODE_ENV=production BABEL_ENV=production BROWSERSLIST_ENV=production LANGUAGE=en-US REACT=true storybook build -o storybook",
6565
"chromatic": "chromatic",
6666
"clean": "rm -rf dist es i18n/bundles i18n/json i18n/*.js reports storybook",
6767
"copy:flow": "flow-copy-source --ignore \"**/__tests__/**\" --ignore \"**/__mocks__/**\" --ignore \"**/*.ts\" ./src ./es && copyfiles './src/**/*.js.flow' es --up 1",

scripts/test.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)