Skip to content

Commit

Permalink
tests: adjust jest config to work with newest sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
schmanu committed Mar 28, 2024
1 parent ed8e37d commit 525d6ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ const customJestConfig = {
testEnvironment: 'jest-environment-jsdom',
}

module.exports = createJestConfig(customJestConfig)
module.exports = async () => ({
...(await createJestConfig(customJestConfig)()),
transformIgnorePatterns: ['node_modules/(?!(isows)/)'],
})
4 changes: 4 additions & 0 deletions jest.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,7 @@ jest.mock('@web3-onboard/core', () => () => ({
get: () => mockOnboardState,
},
}))

const { TextEncoder, TextDecoder } = require('util')
global.TextEncoder = TextEncoder
global.TextDecoder = TextDecoder

0 comments on commit 525d6ad

Please sign in to comment.