Skip to content

Conversation

@notanengineercom
Copy link
Collaborator

@notanengineercom notanengineercom commented Oct 3, 2021

Closes #46
Adds ways to reset a Substitute. It's possible to clear everything, received calls or substitutions.

@notanengineercom notanengineercom self-assigned this Oct 3, 2021
@notanengineercom notanengineercom merged commit 42a137d into v2-beta Oct 3, 2021
@notanengineercom notanengineercom deleted the add-clear-substitute branch October 3, 2021 20:57
ffMathy added a commit that referenced this pull request Jun 2, 2022
* add ts-node

* create linked list classes

* minor refactoring

* add root substitute graph

* replace context with contextNode

* add recorded arguments class

* add working returns example

* update dependencies

* add compile key to ava config

* refactor existing interfaces

This includes SubstituteBase, SubstituteException, Arguments, Utilities

* replace linked list implementations with recorder + node

* rework substitute implementation

* refactor Arguments.ts

* Substitute v2-beta: Tests (#231)

* move existing tests to regression folder

* add RecordedArguments spec

* create Utilities spec

* Improve perfomance: implement RecordsSet (#232)

* improve proxy creation function

* use node contexts to simplify node logic

* implement custom records set

RecordsSet implements the higher order filter and map methods which get applied when retrieving the iterator. This increases performance as it doesn't create arrays on each .map or .filter -> the iterator yields only the end values with one iteration

* Add clear substitute (#233)

resolves #46 

* implement clearSubstitute

* add clearSubstitute spec

* 2.0.0-beta.0

* refactor and add recorder related specs (#236)

* Update package.json

Co-authored-by: Mathias Lykkegaard Lorenzen <mathias.lorenzen@live.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants