fix(design-system): fix typist tests

This commit is contained in:
41666 2020-10-24 21:02:41 -04:00
parent b3c384421b
commit 4c3f5de0f6
7 changed files with 35 additions and 15 deletions

View file

@ -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
View file

@ -0,0 +1,4 @@
import enableHooks from 'jest-react-hooks-shallow';
// pass an instance of jest to `enableHooks()`
enableHooks(jest);