Skip to content

Commit d9a2b69

Browse files
committed
Adding BeforeAll and AfterAll hooks
1 parent ba4dc23 commit d9a2b69

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/browser-runtime.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,8 +1053,6 @@ export default function createTests(
10531053
const tags = collectTagNames(pickle.tags);
10541054
const beforeHooks = registry.resolveBeforeHooks(tags);
10551055
const afterHooks = registry.resolveAfterHooks(tags);
1056-
const beforeAllHooks = registry.resolveBeforeAllHooks();
1057-
const afterAllHooks = registry.resolveAfterAllHooks();
10581056
const hooksToStep = (hook: IHook): messages.TestStep => {
10591057
return {
10601058
id: createTestStepId({
@@ -1090,11 +1088,9 @@ export default function createTests(
10901088
id: pickle.id,
10911089
pickleId: pickle.id,
10921090
testSteps: [
1093-
...beforeAllHooks.map(hooksToStep),
10941091
...beforeHooks.map(hooksToStep),
10951092
...pickle.steps.map(pickleStepToTestStep),
1096-
...afterHooks.map(hooksToStep),
1097-
...afterAllHooks.map(hooksToStep)
1093+
...afterHooks.map(hooksToStep)
10981094
],
10991095
};
11001096
});

0 commit comments

Comments
 (0)