Skip to content

Commit dc7eee2

Browse files
committed
update
1 parent 12102ea commit dc7eee2

File tree

4 files changed

+7
-12
lines changed

4 files changed

+7
-12
lines changed

tests/e2e/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "e2e",
33
"version": "3.0.0-alpha.16",
44
"private": true,
5+
"type": "module",
56
"scripts": {
67
"test": "vitest run"
78
},

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
2-
import {
3-
ZenStackValidationTester,
4-
createTestDir,
5-
expectValidationSuccess,
6-
expectValidationFailure,
7-
baseSchema,
8-
} from './test-utils';
1+
import { afterEach, beforeEach, describe, it } from 'vitest';
2+
import { ZenStackValidationTester, createTestDir, expectValidationFailure } from './test-utils';
93

104
describe('Datasource Validation', () => {
115
let tester: ZenStackValidationTester;

tests/e2e/prisma-consistency/relations-one-to-many.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
1+
import { afterEach, beforeEach, describe, it } from 'vitest';
22
import {
33
ZenStackValidationTester,
4+
baseSchema,
45
createTestDir,
5-
expectValidationSuccess,
66
expectValidationFailure,
7-
baseSchema,
7+
expectValidationSuccess,
88
} from './test-utils';
99

1010
describe('One-to-Many Relations Validation', () => {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export class ZenStackValidationTester {
7575
const errors: string[] = [];
7676

7777
for (const line of lines) {
78-
if (line.includes('Error:') || line.includes('error:') || line.includes('✖')) {
78+
if (line.includes('.zmodel')) {
7979
errors.push(line.trim());
8080
}
8181
}

0 commit comments

Comments
 (0)