Socket
Socket
Sign inDemoInstall

grunt-karma

Package Overview
Dependencies
Maintainers
4
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-karma - npm Package Compare versions

Comparing version 0.8.2 to 0.8.3

3

CHANGELOG.md

@@ -0,1 +1,4 @@

# 0.8.3
* Flatten `files` input (@cgross)
# 0.8.2

@@ -2,0 +5,0 @@ * Emergency fix: Don't pass anything to karma if no browsers are defined.

2

package.json
{
"name": "grunt-karma",
"version": "0.8.2",
"version": "0.8.3",
"description": "grunt plugin for karma test runner",

@@ -5,0 +5,0 @@ "main": "tasks/grunt-karma.js",

@@ -67,2 +67,19 @@ # grunt-karma [![Build Status](https://travis-ci.org/karma-runner/grunt-karma.png?branch=master)](https://travis-ci.org/karma-runner/grunt-karma)

### Config with Grunt Template Strings in `files`
When using template strings in the `files` option, the results will flattened. Therefore, if you include a variable that includes an array, the array will be flattened before being passed to Karma.
Example:
```js
meta: {
jsFiles: ['jquery.js','angular.js']
},
karma: {
options: {
files: ['<%= meta.jsFiles %>','angular-mocks.js','**/*-spec.js']
}
}
```
## Sharing Configs

@@ -69,0 +86,0 @@ If you have multiple targets, it may be helpful to share common

@@ -59,2 +59,6 @@ /*

if (data.files){
data.files = _.flatten(data.files);
}
//support `karma run`, useful for grunt watch

@@ -61,0 +65,0 @@ if (this.flags.run){

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