Socket
Socket
Sign inDemoInstall

ember-sinon-qunit-codemod

Package Overview
Dependencies
383
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ember-sinon-qunit-codemod

A codemod for migrating to ember-sinon-qunit V4


Version published
Weekly downloads
2
decreased by-71.43%
Maintainers
1
Install size
24.4 MB
Created
Weekly downloads
 

Readme

Source

ember-sinon-qunit-codemod

A jscodeshift based codemod to help migrate to ember-sinon-qunit V4.

This codemod converts usages of this.sandbox to sinon, and removes usages of ember-sinon-sandbox and ember-sinon-sinoff. Lastly, it will remove usages of sinon.restore as it is not needed in V4.

Usage

WARNING: jscodeshift, and thus this codemod, edits your files in place. It does not make a copy. Make sure your code is checked into a source control repository like Git and that you have no outstanding changes to commit before running this tool.

cd my-ember-app-or-addon
npx ember-sinon-qunit-codemod tests

Make sure to remove any deprecated libraries, such as ember-sinon-sandbox or ember-sinon-sinoff and then use the latest ember-sinon-qunit

npm i -D ember-sinon-qunit

Gotchas

Keep in mind that this codemod may end up leaving unwanted whitespace when importing sinon. This can be autofixed with a proper eslint rule.

FAQs

Last updated on 28 Jan 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc