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

@bazel/jasmine

Package Overview
Dependencies
Maintainers
3
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bazel/jasmine

Run Jasmine tests under Bazel

  • 0.26.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
24K
increased by2.64%
Maintainers
3
Weekly downloads
 
Created
Source

Jasmine rules for Bazel

WARNING: this is beta-quality software. Breaking changes are likely. Not recommended for production use without expert support.

The Jasmine rules run tests under the Jasmine framework with Bazel.

Installation

Add the @bazel/jasmine npm package to your devDependencies in package.json.

Your WORKSPACE should declare a yarn_install or npm_install rule named npm. It should then install the rules found in the npm packages using the `install_bazel_dependencies' function. See https://github.com/bazelbuild/rules_nodejs/#quickstart

This causes the @bazel/jasmine package to be installed as a Bazel workspace named npm_bazel_jasmine.

NodeJS testing

Overview

Macros


Overview

These rules let you run tests outside of a browser. This is typically faster than launching a test in Karma, for example.

jasmine_node_test

jasmine_node_test(name, srcs, data, deps, expected_exit_code, tags, jasmine, **kwargs)

Runs tests in NodeJS using the Jasmine test runner.

To debug the test, see debugging notes in nodejs_test.

Attributes

name

Name; Required

name of the resulting label

srcs

List of strings; Optional

JavaScript source files containing Jasmine specs

data

List of strings; Optional

Runtime dependencies which will be loaded while the test executes

deps

List of strings; Optional

Other targets which produce JavaScript, such as ts_library

expected_exit_code

Integer; Optional

The expected exit code for the test. Defaults to 0.

tags

List of strings; Optional

bazel tags applied to test

jasmine

String; Optional

a label providing the jasmine dependency

**kwargs

Unknown; Optional

remaining arguments are passed to the test rule

FAQs

Package last updated on 26 Feb 2019

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