-
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
Test: Move simpler tests from lib/*
to single test runner
#3988
Conversation
365731f
to
262f5d6
Compare
d379b60
to
1098f50
Compare
@@ -27,6 +27,6 @@ function findQuickMocks( dirpath ) { | |||
} ); | |||
} | |||
|
|||
export default function( dirpath ) { | |||
export default function( dirpath = __dirname ) { |
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.
isn't this the path of this file though? I didn't provide a default because I think it's always wrong... but maybe I'm wrong?
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.
Yes, you are right. I forgot to remove my failed try to make it smarter :D
1098f50
to
48ba7e4
Compare
/cc @blowery |
@@ -11,7 +11,7 @@ var mockSites = null, | |||
}, | |||
actions; | |||
|
|||
describe( 'Recommended Site Store Actions', function() { | |||
describe( 'actions', function() { |
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.
Mockery setup a couple lines past should be cleaned up
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 see it now, thanks :)
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.
Updated to use mockery helper
🚢 looks good |
Test: Move simpler tests from `lib/*` to single test runner
Part of #3942.
This PR removes 22
Makefile
files located in `client/lib/* and moves related test suites to single test runner. In addition it also fixes all ESLint warnings found in modified test files.By design I skipped all test files that have filesystem mocks and use globals :)
Testing
client
folder.make test
.