Socket
Socket
Sign inDemoInstall

test-fixture

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

test-fixture - npm Package Compare versions

Comparing version 2.4.0 to 2.4.1

2

package.json
{
"name": "test-fixture",
"version": "2.4.0",
"version": "2.4.1",
"description": "Copy test-fixtures to temp dir and get resolved file paths.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -53,6 +53,6 @@ [![Build Status](https://travis-ci.org/kaelzhang/node-test-fixture.svg?branch=master)](https://travis-ci.org/kaelzhang/node-test-fixture)

path.resolve(fixturesRoot, ...args)
path.resolve(fixturesRoot, ...paths)
```
`arguments` | `base`(dir of test fixtures)
`...paths` | `base`(dir of test fixtures)
--------- | --------------------

@@ -65,3 +65,3 @@ `undefined` | `test/fixtures`

Actually, the `base` is `path.resolve('text/fixtures', path...)`
Actually, the `base` is `path.resolve('text/fixtures', ...paths)`

@@ -71,4 +71,4 @@ #### Without copying

```js
const {resolve} = fixtures(base)
resolve('a.js') // -> /path/to/<base>/a.js
const {resolve} = fixtures(p)
resolve('a.js') // -> /path/to/<p>/a.js
```

@@ -79,3 +79,3 @@

```js
const {copy, resolve} = fixtures(base)
const {copy, resolve} = fixtures(p)

@@ -122,3 +122,3 @@ await copy('/path/to')

### install(options?)
### await install(options?)

@@ -125,0 +125,0 @@ - **options?** `Object` options of [`npminstall`](https://npmjs.org/package/npminstall)

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