declarative-test-structure-generator
allows writing tests in an object definition style.
{
'Object syntax': {
tests: {
'sample test 1': {
test: () => {
expect(1 + 2).toEqual(3);
}
},
'skipped test': {
skip: true,
test: () => {
expect(5 + 8).toEqual(13);
}
}
}
}
}
As of version 1, the API has been refactored to be standalone, it no longer packs any specific test framework. The API needs to be mapped using pre-built or custom mappers (see documentation).
npm install -D declarative-test-structure-generator
# or
yarn add -D declarative-test-structure-generator
As of version 1, the library package has been re-written in typescript and provides the type definitions.
The documentation is available on the project's page
Please share your feedback and report the encountered issues on the project's issues page.