Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

anymine

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anymine

Anymine -------

  • 0.5.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

Anymine

Run your javascript test in any environment

Abstract

Anymine is a test runner for javascript. Its goal is to make it run in any environment, such as:

  • Browser extension background page
  • VM in node.js, with minimal context injection

Objective

  • Minimal dependency - no assumption to have window or document object.
  • Test API to be injectable:
    Going to use Jasmine for initial development, but essentially what we surface is a single interface to run tests.

Background

Most of the existing test frameworks are designed for specific environments, mostly node.js or web browser. But we got more runtimes which might have different contexts, and it's getting more difficult to run tests in those environments.

I'm developing a chrome extension, and I want to use chrome.storage APIs. What I can do to develop is:

  • Develop without testing
  • Manual testing which is not reliable, and take a lot of time
  • Write a test in node.js, with mocking chrome.storage APIs, and prey the API works in the actual environment as well

FAQs

Package last updated on 24 Aug 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc