Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

667 remove side effects transpiler plugins #1351

Merged
merged 69 commits into from
Feb 5, 2019

Conversation

nicojs
Copy link
Member

@nicojs nicojs commented Feb 5, 2019

Remove side effects from transpiler plugins

  • stryker-webpack-transpiler
  • stryker-typescript
  • stryker-babel-transpiler

* Created `Injector` class, a readonly class that can instantiate `Injectable`s
* Updated the `PluginLoader`, so it can load plugins with the new way of working as well as provide a Bridge plugin for all "old fashion" plugin
* Started implenenting the `BroadcastReporter` and other Reporters in the new way.

Couldn't help to make some quality of life improvements:

* `StrykerOptions` now have the expected required/not required properties.
* Created "test-helpers" package so we can share test helpers between packages.
The TestInjector is a new way of creating your System Under Test (sut) objects.
You can configure what to inject and then call `TestInjector.inject(SutClass)`
Also added some unit tests for the Injector class.
* Made the context of the Injector generic.
* Made injector readonly and type safe
* Moved all injector related stuff to its own package: 'typed-inject'
* Updated TestInjector class to now use the new typed-inject
* Updated Stryker to now use the new typed-inject
* Updated Stryker-api to now use types from typed-inject
…d move implementation of functions to stryker-util
nicojs and others added 25 commits January 16, 2019 10:06
@ghost ghost assigned nicojs Feb 5, 2019
@ghost ghost added the 🔎 Needs review label Feb 5, 2019
@nicojs nicojs merged commit 9a8b539 into master Feb 5, 2019
@ghost ghost removed the 🔎 Needs review label Feb 5, 2019
@nicojs nicojs deleted the 667-remove-side-effects-transpiler-plugins branch February 5, 2019 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants