Skip to content

Commit b610909

Browse files
committed
update
1 parent dc7eee2 commit b610909

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

tests/e2e/prisma-consistency/test-utils.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { expect } from 'vitest';
88

99
export interface ValidationResult {
1010
success: boolean;
11-
errors: string[];
1211
}
1312

1413
export 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

10185
export function expectValidationFailure(result: ValidationResult) {
10286
expect(result.success).toBe(false);
103-
expect(result.errors.length).toBeGreaterThan(0);
10487
}
10588

10689
export const baseSchema = `

0 commit comments

Comments
 (0)