Skip to content

Commit

Permalink
test: fix type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Jul 24, 2024
1 parent badb575 commit 5c0b89c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions jest.setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const { TextEncoder, TextDecoder } = require('util')
global.TextEncoder = TextEncoder
global.TextDecoder = TextDecoder
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@
"displayName": "Unit Test",
"moduleNameMapper": {
"axios": "axios/dist/node/axios.cjs"
}
},
"setupFilesAfterEnv": [
"<rootDir>/jest.setup.js"
]
},
"eslintConfig": {
"extends": "react-app"
Expand Down

0 comments on commit 5c0b89c

Please sign in to comment.