peridot icon indicating copy to clipboard operation
peridot copied to clipboard

beforeAll on suite/file level and global beforeAll

Open denblackstache opened this issue 6 years ago • 0 comments

Is it possible to implement these with current API and add it to current DSL?

beforeAll Runs a function before any of the tests in this file run. Example in Jest https://jestjs.io/docs/en/setup-teardown#one-time-setup

Repeating Setup For Many Tests Run setup for each test, for ex. to cleanup database and cache storage. So it's a global beforeEach. Example in Jest https://jestjs.io/docs/en/setup-teardown#repeating-setup-for-many-tests

denblackstache avatar Aug 10 '18 18:08 denblackstache