Skip to content

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

License

Notifications You must be signed in to change notification settings

prompt/assertions

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published