mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-14 16:49:10 +00:00
fix(design-system): fix typist tests
This commit is contained in:
parent
b3c384421b
commit
4c3f5de0f6
7 changed files with 35 additions and 15 deletions
|
@ -19,7 +19,9 @@ DEFAULT_DEPS = [
|
|||
"@npm//enzyme-to-json",
|
||||
"@npm//react-dom",
|
||||
"@npm//@types/react-dom",
|
||||
"@npm//jest-react-hooks-shallow",
|
||||
"//:tsconfig.json",
|
||||
"//:hack/jestSetup.ts",
|
||||
]
|
||||
|
||||
def _impl_jest_test(name, srcs, deps, jest_config, **kwargs):
|
||||
|
|
4
hack/jestSetup.ts
Normal file
4
hack/jestSetup.ts
Normal file
|
@ -0,0 +1,4 @@
|
|||
import enableHooks from 'jest-react-hooks-shallow';
|
||||
|
||||
// pass an instance of jest to `enableHooks()`
|
||||
enableHooks(jest);
|
Loading…
Add table
Add a link
Reference in a new issue