-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Framework: Switch menus tests to single runner #4197
Conversation
Necessary for the single runner.
useSandbox(); | ||
|
||
const menuDataPath = path.dirname( require.resolve( 'lib/menu-data' ) ); | ||
useFilesystemMocks( menuDataPath + '/test' ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technique here for picking up filesystem mocks from elsewhere is convoluted, so maybe we can add something into the helper for this if it becomes common.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think this is actually OK. I like that it requires a bit of gymnastics to do something odd.
looks good! 🚢 |
I added one tiny change. We started to name all test files after file under test. We already have |
Framework: Switch menus tests to single runner
Thanks @gziolo I missed that. Good catch! |
This went mostly smoothly. Had to introduce the use of filesystem mocks into the
item-options
test to avoiddouble callback!
hangs.