Skip to content

Commit b9408ff

Browse files
Fix unit tests (#5466)
Force merging to unblock build
1 parent eee88cf commit b9408ff

File tree

11 files changed

+1608
-286
lines changed

11 files changed

+1608
-286
lines changed

.babelrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"env": {
3+
"test": {
4+
"plugins": ["@babel/plugin-transform-modules-commonjs"]
5+
}
6+
}
7+
}

jest.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ module.exports = {
151151
// snapshotSerializers: [],
152152

153153
// The test environment that will be used for testing
154-
testEnvironment: 'node',
154+
testEnvironment: 'jest-environment-node',
155155

156156
// Options that will be passed to the testEnvironment
157157
// testEnvironmentOptions: {},
@@ -189,7 +189,7 @@ module.exports = {
189189
// timers: "real",
190190

191191
// A map from regular expressions to paths to transformers
192-
// transform: null,
192+
// transform: {},
193193

194194
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
195195
// transformIgnorePatterns: [

0 commit comments

Comments
 (0)