Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 2.2 KB

README.md

File metadata and controls

34 lines (28 loc) · 2.2 KB

Assertions

A collection of assertions for Assert.

Reference Description
npm://@assertions/is-strictly-equal actual is the same value and type as expected
npm://@assertions/is-equal actual has the same value as expected
npm://@assertions/is-true actual is a string equivalent to YAML Boolean true
npm://@assertions/starts-with actual starts with expected
npm://@assertions/directory-exists path expected exists and is a directory
npm://@assertions/equivalent-html actual HTML is equivalent to expected HTML

Monorepo using npm Workspaces

This monorepo organises assertions into separate npm packages by directory, each managed as an npm workspace. Run an npm command against one or more package using the -w|--workspace parameter or --workspaces for all.

dev:~$ npm run test -w @assertions/is-equal
dev:~$ npm run test -w @assertions/is-equal -w @assertions/directory-exists
dev:~$ npm run test --workspace @assertions/is-equal
dev:~$ npm run test --workspaces