@prisma-next/emitter 0.3.0-dev.124 → 0.3.0-dev.125
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -5
- package/test/emitter.test.ts +3 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/emitter",
|
|
3
|
-
"version": "0.3.0-dev.
|
|
3
|
+
"version": "0.3.0-dev.125",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"files": [
|
|
@@ -10,17 +10,17 @@
|
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"arktype": "^2.0.0",
|
|
13
|
-
"@prisma-next/
|
|
14
|
-
"@prisma-next/
|
|
13
|
+
"@prisma-next/core-control-plane": "0.3.0-dev.125",
|
|
14
|
+
"@prisma-next/contract": "0.3.0-dev.125"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@types/node": "24.10.4",
|
|
18
18
|
"tsdown": "0.18.4",
|
|
19
19
|
"typescript": "5.9.3",
|
|
20
20
|
"vitest": "4.0.17",
|
|
21
|
-
"@prisma-next/operations": "0.3.0-dev.
|
|
22
|
-
"@prisma-next/tsconfig": "0.0.0",
|
|
21
|
+
"@prisma-next/operations": "0.3.0-dev.125",
|
|
23
22
|
"@prisma-next/test-utils": "0.0.1",
|
|
23
|
+
"@prisma-next/tsconfig": "0.0.0",
|
|
24
24
|
"@prisma-next/tsdown": "0.0.0"
|
|
25
25
|
},
|
|
26
26
|
"exports": {
|
package/test/emitter.test.ts
CHANGED
|
@@ -428,23 +428,6 @@ describe('emitter', () => {
|
|
|
428
428
|
await expect(emit(ir, options, mockSqlHook)).rejects.toThrow('ContractIR must have storage');
|
|
429
429
|
});
|
|
430
430
|
|
|
431
|
-
it('throws error when relations is missing', async () => {
|
|
432
|
-
const ir = createContractIR({
|
|
433
|
-
relations: undefined as unknown as Record<string, unknown>,
|
|
434
|
-
}) as ContractIR;
|
|
435
|
-
|
|
436
|
-
const operationRegistry = createOperationRegistry();
|
|
437
|
-
const options: EmitOptions = {
|
|
438
|
-
outputDir: '',
|
|
439
|
-
operationRegistry,
|
|
440
|
-
codecTypeImports: [],
|
|
441
|
-
operationTypeImports: [],
|
|
442
|
-
extensionIds: [],
|
|
443
|
-
};
|
|
444
|
-
|
|
445
|
-
await expect(emit(ir, options, mockSqlHook)).rejects.toThrow('ContractIR must have relations');
|
|
446
|
-
});
|
|
447
|
-
|
|
448
431
|
it('throws error when relations is not an object', async () => {
|
|
449
432
|
const ir = createContractIR({
|
|
450
433
|
relations: 'not-an-object' as unknown as Record<string, unknown>,
|
|
@@ -459,7 +442,9 @@ describe('emitter', () => {
|
|
|
459
442
|
extensionIds: [],
|
|
460
443
|
};
|
|
461
444
|
|
|
462
|
-
await expect(emit(ir, options, mockSqlHook)).rejects.toThrow(
|
|
445
|
+
await expect(emit(ir, options, mockSqlHook)).rejects.toThrow(
|
|
446
|
+
'ContractIR relations must be an object when provided',
|
|
447
|
+
);
|
|
463
448
|
});
|
|
464
449
|
|
|
465
450
|
it('throws error when extension packs are missing', async () => {
|