Skip to content

Breaking Changes

James Adarich edited this page Oct 15, 2018 · 2 revisions

v3.0.0

  1. AsyncSetup, AsyncSetupFixture and SetupFixture decorators are now redundant and you should only use Setup
  2. AsyncTeardown, AsyncTeardownFixture and TeardownFixture decorators are now redundant and you should only use Teardown
  3. AsyncTest decorator is now redundant and you should only use Test
  4. IgnoreTest and IgnoreTests have been replaced with a single decorator Ignore
  5. FocusTest and FocusTests have been replaced with a single decorator Focus
  6. Expect is now extended via the Expect.extend

Migrating from v2.x.x to v3.x.x

  1. Replace AsyncSetup, AsyncSetupFixture and SetupFixture decorators with Setup
  2. Replace AsyncTeardown, AsyncTeardownFixture and TeardownFixture decorators with Teardown
  3. Replace AsyncTest decorator with Test
  4. Replace IgnoreTest and IgnoreTests decorator with Ignore
  5. Replace FocusTest and FocusTests decorator with Focus
  6. Rework your extended matchers to use the new Expect.extend function
    1. Remove your custom Expect function, this will not be needed as Expect.extend returns you the necessary function
    2. Call Expect.extend with the constructor type it should work on and the new Matcher e.g. Expect.extend(MyClass, MyClassMatcher);
    3. Export and use the return value from Expect.extend
Clone this wiki locally