# testcafe-once-hook **Repository Path**: mirrors_DevExpress/testcafe-once-hook ## Basic Information - **Project Name**: testcafe-once-hook - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-01-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # DEPREDCATED The TestCafe team no longer maintains the `testcafe-once-hook` repository. If you want to take over the project, we'll be happy to hand it over. To contact the team, create a new GitHub issue. ## testcafe-once-hook This module provides TestCafe hooks executed once in a single browser even when you run tests in multiple browsers. This functionality is a workaround for the issue described in [#1345](https://github.com/DevExpress/testcafe/issues/1345). The `testcafe-once-hook` module exports two functions: - `oncePerFixture` runs in the first specified browser before and after all tests in a fixture. Unlike the `fixture.before` and `fixture.after` hooks designed for server-side operations, `oncePerFixture` allows you to execute test actions in the browser. - `oncePerTest` runs in the first specified browser before and after each test in a fixture, while regular `beforeEach` and `afterEach` hooks run in every browser.