FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
hackernews-react-graphql/test-setup.js at master · 4dcoder/hackernews-react-graphql · GitHub
4dcoder
/
hackernews-react-graphql
Public
forked from
clintonwoo/hackernews-react-graphql
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
hackernews-react-graphql
/
test-setup.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
15 lines (12 loc) · 410 Bytes
Breadcrumbs
hackernews-react-graphql
/
test-setup.js
Copy path
File metadata and controls
15 lines (12 loc) · 410 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import
{
configure
,
shallow
,
render
,
mount
}
from
'enzyme'
;
import
Adapter
from
'enzyme-adapter-react-16'
;
// React 16 Enzyme adapter
configure
(
{
adapter
:
new
Adapter
(
)
}
)
;
// Make Enzyme functions available in all test files without importing
global
.
shallow
=
shallow
;
global
.
render
=
render
;
global
.
mount
=
mount
;
// Fail tests on any warning
console
.
error
=
(
message
)
=>
{
throw
new
Error
(
message
)
;
}
;
Back
|
FazBrowse Home
|
New Git URL