-
Notifications
You must be signed in to change notification settings - Fork 34
Breaking Changes
James Adarich edited this page Oct 15, 2018
·
2 revisions
-
AsyncSetup
,AsyncSetupFixture
andSetupFixture
decorators are now redundant and you should only useSetup
-
AsyncTeardown
,AsyncTeardownFixture
andTeardownFixture
decorators are now redundant and you should only useTeardown
-
AsyncTest
decorator is now redundant and you should only useTest
-
IgnoreTest
andIgnoreTests
have been replaced with a single decoratorIgnore
-
FocusTest
andFocusTests
have been replaced with a single decoratorFocus
-
Expect
is now extended via theExpect.extend
- Replace
AsyncSetup
,AsyncSetupFixture
andSetupFixture
decorators withSetup
- Replace
AsyncTeardown
,AsyncTeardownFixture
andTeardownFixture
decorators withTeardown
- Replace
AsyncTest
decorator withTest
- Replace
IgnoreTest
andIgnoreTests
decorator withIgnore
- Replace
FocusTest
andFocusTests
decorator withFocus
- Rework your extended matchers to use the new
Expect.extend
function- Remove your custom Expect function, this will not be needed as
Expect.extend
returns you the necessary function - Call
Expect.extend
with the constructor type it should work on and the new Matcher e.g.Expect.extend(MyClass, MyClassMatcher);
- Export and use the return value from
Expect.extend
- Remove your custom Expect function, this will not be needed as