Merge pull request #5538 from jakemcdermott/ui-next-test-utils-test-coverage

Measure unit test coverage of test utils

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot] 2019-12-19 15:23:39 +00:00 committed by GitHub
commit cf57d596a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View File

@ -1,6 +1,7 @@
module.exports = {
collectCoverageFrom: [
'src/**/*.{js,jsx}'
'src/**/*.{js,jsx}',
'testUtils/**/*.{js,jsx}'
],
coveragePathIgnorePatterns: [
'<rootDir>/src/locales',

View File

@ -146,11 +146,8 @@ describe('waitForElement', () => {
} catch (err) {
error = err;
} finally {
expect(error).toEqual(
new Error(
'Expected condition for <#does-not-exist> not met: el => el.length === 1'
)
);
expect(error.message).toContain('Expected condition for <#does-not-exist> not met');
expect(error.message).toContain('el.length === 1');
done();
}
});