File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const combineStdOutAndStdErr = (testResult: FixtureContext['testResult']) => {
10
10
export function expectSuccess ( context : FixtureContext ) {
11
11
const output = combineStdOutAndStdErr ( context . testResult ) ;
12
12
13
- expect ( output ) . toMatch ( / \b p a s s | \b o k \b | \b 0 f a i l u r e s \b / i) ;
13
+ expect ( output ) . toMatch ( / \b p a s s | ( (?< ! n o t ) \b o k \b ) | \b 0 f a i l u r e s \b / i) ;
14
14
15
15
// ? Jasmine wants to be special
16
16
if ( output . includes ( 'Incomplete: fit() or fdescribe() was found' ) ) {
@@ -22,7 +22,7 @@ export function expectSuccess(context: FixtureContext) {
22
22
23
23
export function expectSuccessAndOutput ( context : FixtureContext ) {
24
24
expect ( combineStdOutAndStdErr ( context . testResult ) ) . toMatch (
25
- / \b p a s s | \b o k \b | \b 0 f a i l u r e s \b / i
25
+ / \b p a s s | ( (?< ! n o t ) \b o k \b ) | \b 0 f a i l u r e s \b / i
26
26
) ;
27
27
expect ( context . testResult ?. stdout ) . toInclude ( 'working' ) ;
28
28
expect ( context . testResult ?. code ) . toBe ( 0 ) ;
You can’t perform that action at this time.
0 commit comments