herbsjs / herbs-cli

Herbs CLI
https://herbsjs.org/
MIT License
29 stars 30 forks source link

Herbs spec (Aloe) CLI command should run "pure" specs - without usecase or metadata about usecase #169

Closed dalssoft closed 1 year ago

dalssoft commented 1 year ago

Currently herbs spec does not run if the spec hasn't usecases and/or metadatas, but it should not be necessary.

Without use case inside spec:

const createUserSpec = spec({

    // usecase: createUser,           <- should run without

    'Create a new user when it is valid': scenario({
...

or without metadata:

module.exports =
  herbarium.specs
    .add(createUserSpec, 'CreateUserSpec')
    // .metadata({ usecase: 'CreateUser' })       <- should run without
    .spec