diff --git a/packages/utils/tests/dmmf.test.ts b/packages/utils/tests/dmmf.test.ts index f2932683..2bae5cbf 100644 --- a/packages/utils/tests/dmmf.test.ts +++ b/packages/utils/tests/dmmf.test.ts @@ -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', () => { @@ -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 () => {