Skip to content

Repository files navigation

Assertions

A collection of assertions for Assert.

ReferenceDescription
npm://@assertions/is-strictly-equalactual is the same value and type as expected
npm://@assertions/is-equalactual has the same value as expected
npm://@assertions/is-trueactual is a string equivalent to YAML Boolean true
npm://@assertions/starts-withactual starts with expected
npm://@assertions/directory-existspath expected exists and is a directory
npm://@assertions/equivalent-htmlactual 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-equaldev:~$ npm run test -w @assertions/is-equal -w @assertions/directory-existsdev:~$ npm run test --workspace @assertions/is-equaldev:~$ npm run test --workspaces

About

⛽ A collection of assertions for writing tests with GitHub Action's Assert

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages