@zenfs/devel
v1.2.0
Published
Tooling for developing ZenFS packages
Maintainers
Readme
ZenFS Development
Tooling for developing ZenFS packages, such as third-party backends. This is only needed when authoring for ZenFS.
npm install --save-dev @zenfs/develTests
@zenfs/devel includes the fs conformance suite that every @zenfs package is tested with, along with the zenfs-test runner.
npx zenfs-test tests/setup-idb.ts # one specific setup file
npx zenfs-test -ac # every setup file it can find, plus your package's other testsA setup file configures ZenFS with the backend under test and populates it, for example with the bundled test data:
import { configureSingle } from '@zenfs/core';
import { copyAsync, data } from '@zenfs/devel/tests/setup';
import { MyBackend } from '../src/index.js';
await configureSingle({ backend: MyBackend });
await copyAsync(data);Run npx zenfs-test --help for all options.
ESLint
The shared ESLint configuration used by @zenfs packages:
import { defineConfig } from 'eslint/config';
import shared from '@zenfs/devel/eslint';
export default defineConfig(...shared);Scripts
zenfs-test: Runs tests and collects coveragemake-index: Creates an index of a directory, for use with backends likeFetchzci: Shortcut for reporting CI steps as GitHub check runs. Used in the@zenfspackages' workflows.
