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']) => {
1010export function expectSuccess ( context : FixtureContext ) {
1111 const output = combineStdOutAndStdErr ( context . testResult ) ;
1212
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) ;
1414
1515 // ? Jasmine wants to be special
1616 if ( output . includes ( 'Incomplete: fit() or fdescribe() was found' ) ) {
@@ -22,7 +22,7 @@ export function expectSuccess(context: FixtureContext) {
2222
2323export function expectSuccessAndOutput ( context : FixtureContext ) {
2424 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
2626 ) ;
2727 expect ( context . testResult ?. stdout ) . toInclude ( 'working' ) ;
2828 expect ( context . testResult ?. code ) . toBe ( 0 ) ;
You can’t perform that action at this time.
0 commit comments