There is no way to execute code for every test, even those defined with test.skip('', () => {}).
This is required in order to customize reporting for skipped tests. For other tests it can be done using a fixture or with beforeEach hook, but skipped tests execute neither of those, and no customization, such as assigning labels in Allure dependent on test location, is possible.