🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

fixture-cases-extract

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fixture-cases-extract

Extract test target files from each case directories

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

fixture-cases-extract

Extract test target files from each case directories

Install

npm i fixture-cases-extract

Usage

var path = require('path')
var fixtureCasesExtract = require('fixture-cases-extract')

fixtureCasesExtract({
  basePath: path.join(__dirname, 'fixtures')
  fileMap: {
    actual: 'actual.json',
    expected: 'expected.json',
    options: 'options.json'
  }
})
.forEach(function (testCase) {
  // Mocha tes like
  it('should process' + testCase.name, function(){
    // ...
  })
})

Keywords

test

FAQs

Package last updated on 06 Oct 2015

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