You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the current behavior?
If I have some global beforeEach or afterEach methods defined in none of the describe block, in multi-browser mode, some browser instances will ignore such beforeEach or afterEach, as they will do if they were wrapped in some describe block. But when I didn't wrap beforeEach or afterEach in any describe block I expected that they will run in each test runs in each browser.
What is the expected behavior? global beforeEach or afterEach (not wrapped in any describe block) runs in each test run in each browser instance
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
describe('important beforeEach or afterEach go next!', () => {
beforeAll(() => {
console.log('important describe');
});
});
// beforeEach and afterEach go after 'important beforeEach or afterEach go next!' description. If i wrap it in description
// karma will ignore this beforeEach and afterEach on every other describe blocks
beforeEach(() => {
.....
});
afterEach(() => {
....
});
The text was updated successfully, but these errors were encountered:
ercultimate
added a commit
to ercultimate/karma-parallel
that referenced
this issue
Apr 28, 2023
**I'm submitting a ... **
What is the current behavior?
If I have some
global
beforeEach or afterEach methods defined in none of the describe block, in multi-browser mode, some browser instances will ignore such beforeEach or afterEach, as they will do if they were wrapped in some describe block. But when I didn't wrap beforeEach or afterEach in any describe block I expected that they will run in each test runs in each browser.What is the expected behavior?
global
beforeEach or afterEach (not wrapped in any describe block) runs in each test run in each browser instanceOther information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
My workaround:
Karma config:
some-test-helper-with-global-beforeEach:
The text was updated successfully, but these errors were encountered: