Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

How to use typewiz with jasmine #70

Open
kopach opened this issue Apr 26, 2018 · 1 comment
Open

How to use typewiz with jasmine #70

kopach opened this issue Apr 26, 2018 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@kopach
Copy link

kopach commented Apr 26, 2018

Hi. I have all my tests written with jasmine. How can I use typewiz with jasmine?

@urish urish added enhancement New feature or request help wanted Extra attention is needed labels Apr 26, 2018
@urish
Copy link
Collaborator

urish commented Apr 26, 2018

We don't currently have a specific integration for Jasmine, though, if anybody wants to try working on it, I can offer my guidance.

If you run jasmine inside node, then you can probably get it to work using typewiz-node, similarly to how we integrate with mocha.

If you run jasmine inside the browser, you can use the typewiz CLI to instrument your source code, then require the type collect snippet in your code, save the collected type info to a file, then revert the source code to remove the instrumentation, and use the applyTypes command of the CLI to apply the collected types back to your source code. If you need more details about any of the steps, let me know and I will try to help.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants