mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 16:51:11 +03:00
Measure unit test coverage of test utils
This commit is contained in:
parent
2f9742e9de
commit
b8d6991e9d
@ -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…
Reference in New Issue
Block a user