We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fa3f5e commit 315945cCopy full SHA for 315945c
1 file changed
.storybook/test-runner.ts
@@ -1,6 +1,11 @@
1
import type { TestRunnerConfig } from '@storybook/test-runner';
2
3
const config: TestRunnerConfig = {
4
+ // Hook that is executed once before all tests
5
+ async setup() {
6
+ // Global setup if needed
7
+ },
8
+
9
// Hook that is executed before the test runner starts running tests
10
async preVisit(page) {
11
// Set up any global variables or configurations needed for tests
@@ -9,6 +14,11 @@ const config: TestRunnerConfig = {
14
(window as any).__test = true;
15
});
16
},
17
18
+ // Hook that is executed after the test runner finishes running tests
19
+ async postVisit(page) {
20
+ // Clean up if needed
21
12
22
};
13
23
24
export default config;
0 commit comments