Skip to content

Commit 66b21a3

Browse files
committed
chore: fix tests importing sha.js
The module is called sha.js, but the config strips .js from imports expecting them to be JS files. This adds sha.js as an exception to that rule.
1 parent 964ef70 commit 66b21a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/webui/jest.config.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module.exports = {
77
globals: {},
88
moduleFileExtensions: ['js', 'ts', 'tsx'],
99
moduleNameMapper: {
10+
'sha.js': 'sha.js',
1011
'meteor/(.*)': '<rootDir>/src/meteor/$1',
1112
'(.+)\\.js$': '$1',
1213
},

0 commit comments

Comments
 (0)