File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
tests/e2e/prisma-consistency Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import { expect } from 'vitest';
88
99export interface ValidationResult {
1010 success : boolean ;
11- errors : string [ ] ;
1211}
1312
1413export class ZenStackValidationTester {
@@ -60,29 +59,14 @@ export class ZenStackValidationTester {
6059
6160 return {
6261 success : true ,
63- errors : [ ] ,
6462 } ;
6563 } catch ( error : any ) {
6664 return {
6765 success : false ,
68- errors : this . extractErrors ( error . stderr ) ,
6966 } ;
7067 }
7168 }
7269
73- private extractErrors ( output : string ) : string [ ] {
74- const lines = output . split ( '\n' ) ;
75- const errors : string [ ] = [ ] ;
76-
77- for ( const line of lines ) {
78- if ( line . includes ( '.zmodel' ) ) {
79- errors . push ( line . trim ( ) ) ;
80- }
81- }
82-
83- return errors ;
84- }
85-
8670 public cleanup ( ) {
8771 if ( existsSync ( this . testDir ) ) {
8872 rmSync ( this . testDir , { recursive : true , force : true } ) ;
@@ -100,7 +84,6 @@ export function expectValidationSuccess(result: ValidationResult) {
10084
10185export function expectValidationFailure ( result : ValidationResult ) {
10286 expect ( result . success ) . toBe ( false ) ;
103- expect ( result . errors . length ) . toBeGreaterThan ( 0 ) ;
10487}
10588
10689export const baseSchema = `
You can’t perform that action at this time.
0 commit comments