-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dsl): Add xpactWith and fpactWith to improve the experience when…
… skipping tests
- Loading branch information
1 parent
b314834
commit da82056
Showing
5 changed files
with
64 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { fpactWith } from '../index'; | ||
|
||
describe('fpactwith', () => { | ||
fpactWith( | ||
{ consumer: 'MyConsumer', provider: 'NoProvider' }, | ||
(provider: any) => { | ||
it('should only run this test', () => {}); | ||
}, | ||
); | ||
|
||
test('the test that should be skipped', () => { | ||
throw new Error('this test should not be run'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { xpactWith } from '../index'; | ||
|
||
describe('xpactwith', () => { | ||
xpactWith( | ||
{ consumer: 'MyConsumer', provider: 'NoOtherProvider' }, | ||
(provider: any) => { | ||
test('the test that should be skipped', () => { | ||
throw new Error('tests inside xpactWith should not run'); | ||
}); | ||
}, | ||
); | ||
test('this test should run', () => {}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters