auto-spies

Create automatic spies from classes

MIT License

Downloads
266.4K
Stars
179
Committers
15

Bot releases are hidden (Show)

auto-spies - [email protected]

Published by shairez about 4 years ago

6.3.0 (2020-09-10)

Features

  • jasmine-auto-spies: fixed tests (5bd3102)
auto-spies - [email protected]

Published by shairez about 4 years ago

1.0.0 (2020-09-10)

Features

  • jest-auto-spies: added jest-auto-spies (5bd3102)
auto-spies - @hirez_io/[email protected]

Published by shairez about 4 years ago

1.1.0 (2020-09-10)

Features

  • auto-spies-core: added tests (5bd3102)
auto-spies - [email protected]

Published by shairez about 4 years ago

6.2.2 (2020-09-08)

Note: Version bump only for package jasmine-auto-spies

auto-spies - @hirez_io/[email protected]

Published by shairez about 4 years ago

1.0.0 (2020-09-08)

Note: Version bump only for package @hirez_io/auto-spies-core

auto-spies - v6.2.0

Published by shairez about 4 years ago

6.2.0 (2020-09-04)

Features

  • accessors: add ability to spy on getters and setters (6165095), closes #3
auto-spies - v6.1.0

Published by shairez about 4 years ago

6.1.0 (2020-09-03)

Features

  • observable: add ability to spy on observable properties (b75269a), closes #2
auto-spies - v6.0.0

Published by shairez about 4 years ago

6.0.0 (2020-08-31)

Bug Fixes

  • createspyfromclass: stop spying on Function.prototype methods (1463dd4)
  • jasmine: change dep to jasmine-core and update version to 3.6.0 (e7294e7), closes #24
  • jasmine-given: fix @hirez_io/jasmine-given ts errors for vs code (144114c)
  • promises: fix rejectWith flaky behavior (fd4e75f)

chore

  • asyncspyable: remove @AsyncSpyable decorator (3b05547)
  • observer-spy: remove observer-spy (2c14283)

Code Refactoring

  • functionspy: rename createSpyFunction to createFunctionSpy (cddfce4)
  • types: rename types to the new convension with Spy as suffix (7825f56)

Continuous Integration

  • node: remove support for node 8 (ce98f7f)

BREAKING CHANGES

  • createspyfromclass: in case you were counting on spying on Function.prototype methods, this is no
    longer supported. this change will decrease the performance cost as well
  • observer-spy: remove observerSpy and recordObservable from index.ts
  • types: in case anyone uses the internal types like PromiseSpyMethod.. now it's
    PromiseMethodSpy / MethodSpy / ObservableMethodSpy etc
  • node: removed node 8 checks from ci server
  • functionspy: createSpyFunction is no longer available
  • asyncspyable: @AsyncSpyable is removed
auto-spies - v5.4.0

Published by shairez over 4 years ago

5.4.0 (2020-02-09)

Features

  • functions: exported createFunctionSpy (3519111)
auto-spies - v5.3.0

Published by shairez over 4 years ago

5.3.0 (2020-02-09)

Features

  • observables: added ObserverSpy (0c7ae6e)
auto-spies - v5.2.1

Published by shairez over 4 years ago

5.2.1 (2020-02-06)

Bug Fixes

  • observables: add .d.ts files from sub dirs (79de402)
auto-spies - v5.2.0

Published by shairez over 4 years ago

5.2.0 (2020-02-06)

Features

  • observables: added recordObservable (68eac44)
auto-spies - v5.1.0

Published by shairez almost 5 years ago

5.1.0 (2020-01-05)

Features

  • observables: added returnSubject to observable (8a753ce)
auto-spies - v5.0.2

Published by shairez about 5 years ago

5.0.2 (2019-09-10)

Bug Fixes

  • create-spy-from-class: fixed prototype scanning in newer versions (b732e0c), closes #16
auto-spies - v5.0.1

Published by shairez over 5 years ago

5.0.1 (2019-07-17)

Bug Fixes

  • error: fixed mustBeCalledWith error message (2d740e9)
  • typescript: changed ts peerDep range to support newer Angular (7443299), closes #15 #9
auto-spies - v5.0.0

Published by shairez over 5 years ago

5.0.0 (2019-06-20)

Code Refactoring

  • mocks: changed throwOnMismatch to mustBeCalledWith (c8d02bf)

BREAKING CHANGES

  • mocks: The calledWith method doesn't return an object with "throwOnMismatch()" anymore
auto-spies - v4.1.2

Published by shairez over 5 years ago

4.1.2 (2019-06-20)

Bug Fixes

  • errors: formatted log messages in mocks (ca692bf)
auto-spies - v4.1.1

Published by shairez over 5 years ago

4.1.1 (2019-06-17)

Bug Fixes

  • typings: fixed calledWith type resolution (c3cc2a6)
auto-spies - v4.1.0

Published by shairez over 5 years ago

4.1.0 (2019-06-03)

Features

  • async: now promises and observables values are optional (bc6d721)
auto-spies - v4.0.0

Published by shairez over 5 years ago

4.0.0 (2019-05-31)

Features

  • async-spyable: deprecated @AsyncSpyable (dfae003)
  • called-with: added throwOnMismatch() to create mocks (ad63326)
  • called-with: calledWith now handles multiple configurations (07ea479)
  • create-spy-from-class: removed manual async declarations (82adcc1)

BREAKING CHANGES

  • called-with: errors that have been thrown in the past will be silent now, if you want to get the
    former behavior, use throwOnMismatch()
  • create-spy-from-class: you can't use createSpyFromClass(MyClass, [...promisesMethodNames], [...observableMethodNames]) anymore