Gallery of matchers based on NodeJS.
To install them at runtime, you'll need this reference in Vitest's configuration file:
test: { setupFiles: ["@giancosta86/rigoletto/matchers/nodejs"]} Copy
test: { setupFiles: ["@giancosta86/rigoletto/matchers/nodejs"]}
To access them via TypeScript, just add this line to some global .d.ts file included by tsconfig.json:
.d.ts
import "@giancosta86/rigoletto/matchers/nodejs"; Copy
import "@giancosta86/rigoletto/matchers/nodejs";
Asserts that a path exists in the file system.
expect("/etc/passwd").toExistInFileSystem() Copy
expect("/etc/passwd").toExistInFileSystem()
Gallery of matchers based on NodeJS.
To install them at runtime, you'll need this reference in Vitest's configuration file:
To access them via TypeScript, just add this line to some global
.d.ts
file included by tsconfig.json: