CodeceptJS
CodeceptJS copied to clipboard
Consider adding a warning when not using Feature first in the test
Description
When you try to run hook methods (for example BeforeSuite) before using the Feature function, it will silently get skipped over without any output. It would be nice to see at least a warning or an error thrown if possible. This will make debugging and catching errors much easier. If you could provide me a little bit of guidance on where this should be adjusted I would be willing to contribute and submit a PR for this.
BeforeSuite(() => console.log('This will not be logged'));
Feature('Test');
Details
- CodeceptJS version:
3.1.2