-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔊 Add more debug/tracing information for flaky tests
Some CI errors are too cryptic, hopefully with this we can figure out which tests are still failing sometimes.
- Loading branch information
1 parent
70fcd21
commit b1d7c2e
Showing
3 changed files
with
23 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import {TestRunnerConfig} from '@storybook/test-runner'; | ||
|
||
const config: TestRunnerConfig = { | ||
preRender: async (page, context) => { | ||
const {id} = context; | ||
console.log(`Testing story with id: ${id}`); | ||
}, | ||
|
||
postRender: async (page, context) => { | ||
const {id} = context; | ||
console.log(`Done testing story with id: ${id}`); | ||
}, | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters