UNPKG
@trinitymirrordigital/dragonfly-jest-config
Version:
latest (6.0.6-alpha.0)
6.0.6-alpha.0
5.0.5
5.0.5-alpha.0
5.0.4-alpha.0
5.0.2
5.0.0
4.0.2
4.0.1-alpha.0
4.0.0
3.2.4
3.1.0
3.0.0
2.2.0
2.1.0
2.0.0
1.1.4-alpha.0
1.1.0
1.0.0
0.8.0
0.7.3
0.7.2
0.7.1
0.7.0
0.6.1-alpha.0
0.6.0
0.5.1
0.5.0
0.4.2-alpha.0
0.4.1
0.4.0
0.3.1
0.3.0
0.2.0
0.1.1
0.1.0
Jest config for dragonfly projects
bitbucket.org/trinitymirror-ondemand/dragonfly-build-tools
@trinitymirrordigital/dragonfly-jest-config
/
lib
/
helpers
/
additional-matchers
/
to_be_matchers.js
8 lines
(5 loc)
•
227 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
const
isElement =
require
(
'lodash/isElement'
);
const
{
CreateMatcher
,
MakeMsg
} =
require
(
'@djforth/jest-matchers-core'
);
module
.
exports
= {
toBeElement
:
CreateMatcher
(
(
actual
) =>
isElement
(actual),
MakeMsg
(
'Element'
)), };