Socket
Socket
Sign inDemoInstall

@tapjs/fixture

Package Overview
Dependencies
Maintainers
2
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tapjs/fixture - npm Package Compare versions

Comparing version 0.0.0-21 to 0.0.0-22

dist/commonjs/fixture.d.ts

25

package.json
{
"name": "@tapjs/fixture",
"version": "0.0.0-21",
"version": "0.0.0-22",
"description": "Tap plugin to provide t.testdir() and t.fixture()",

@@ -11,14 +11,11 @@ "author": "Isaac Z. Schlueter <i@izs.me> (https://blog.izs.me)",

"exports": {
"./package.json": {
"import": "./package.json",
"require": "./package.json"
},
"./package.json": "./package.json",
".": {
"import": {
"types": "./dist/mjs/index.d.ts",
"default": "./dist/mjs/index.js"
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
"types": "./dist/commonjs/index.d.ts",
"default": "./dist/commonjs/index.js"
}

@@ -32,3 +29,3 @@ }

"scripts": {
"prepare": "tsc -p tsconfig/cjs.json && tsc -p tsconfig/esm.json && bash ./scripts/fixup.sh",
"prepare": "tshy",
"pretest": "npm run prepare",

@@ -46,3 +43,3 @@ "presnap": "npm run prepare",

"peerDependencies": {
"@tapjs/core": "0.0.0-21"
"@tapjs/core": "0.0.0-22"
},

@@ -62,3 +59,9 @@ "dependencies": {

"url": "git+https://github.com/tapjs/tapjs.git"
},
"tshy": {
"exports": {
"./package.json": "./package.json",
".": "./src/index.ts"
}
}
}

@@ -7,2 +7,19 @@ # `@tapjs/fixture`

Fixtures created with this plugin live folders under
`./.tap/fixtures`, in the root of the project. The folder name is
based on the name of the test file, and the name of the test.
For example, if a file at `./src/foo.test.mjs` had this:
```js
import t from 'tap'
t.test('child test', async t => {
t.testdir({ file: 'contents' })
})
```
Then a file would be created at
`.tap/fixtures/src-foo.test.mjs-child-test/file` containing
`'contents'`.
## USAGE

@@ -9,0 +26,0 @@

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