Skip to content

Commit

Permalink
Fix path test for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
f8k8 authored and AhmedElywa committed Mar 12, 2024
1 parent c9a9d9f commit 10873b2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/utils/tests/dmmf.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { join } from 'path';
import { join, normalize } from 'path';
import { getDMMFBySchemaPath, getSchemaPath } from 'dmmf';

describe('test read schema and convert to dmmf', () => {
Expand All @@ -8,7 +8,9 @@ describe('test read schema and convert to dmmf', () => {
});

test('success load schema path', async () => {
expect(await getSchemaPath(schemaPath)).toContain('/packages/utils/tests/schemas/schema.prisma');
expect(normalize(await getSchemaPath(schemaPath))).toContain(
join('packages', 'utils', 'tests', 'schemas', 'schema.prisma'),
);
});

test('build DMMF from schema', async () => {
Expand Down

0 comments on commit 10873b2

Please sign in to comment.