path-serializer
v0.3.4
Published
path-serializer
Downloads
8,455
Readme
path-serializer
- stabilize pnpm dependencies path and update dependencies smoothly
- transform win32 path to posix path and more...
// __snapshots__/index.test.ts.snap
{
"loader" : "<ROOT>/node_modules/<PNPM_INNER>/@rspack/core/dist/builtin-plugin/css-extract/loader-js"
}
Usage
// vitest.setup.ts
import { createSnapshotSerializer } from 'path-serializer';
expect.addSnapshotSerializer(
createSnapshotSerializer({
workspace: path.join(__dirname, '..'),
}),
);
The specific usage can be found in ./src/types.ts