@tapjs/fixture
Advanced tools
Comparing version 0.0.0-21 to 0.0.0-22
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
86
66246
721
1