mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
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:
commit
cf57d596a3
@ -1,6 +1,7 @@
|
||||
module.exports = {
|
||||
collectCoverageFrom: [
|
||||
'src/**/*.{js,jsx}'
|
||||
'src/**/*.{js,jsx}',
|
||||
'testUtils/**/*.{js,jsx}'
|
||||
],
|
||||
coveragePathIgnorePatterns: [
|
||||
'<rootDir>/src/locales',
|
||||
|
||||
@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user