TML-2747: drop the storage.namespaces wrapper (flat storage.<ns> IR) #4405
ci.yml
on: pull_request
Build
25s
Detect inert diff
8s
Fixtures
46s
Test
5m 44s
E2E Tests
1m 38s
Integration Tests
8m 33s
Coverage
6m 38s
Annotations
4 errors
|
Test
Process completed with exit code 1.
|
|
Test
react-router-demo#test: command (/home/runner/work/prisma-next/prisma-next/examples/react-router-demo) /home/runner/setup-pnpm/node_modules/.bin/store/v11/links/@/pnpm/10.27.0/1a120c049688e12cd6aba74b0e72d92e185dfcdad4f9d1ba4149728e22fce575/bin/pnpm run test exited (1)
|
|
test/react-router.smoke.e2e.test.ts > react-router-demo smoke (e2e) > re-emits contract on PSL edit and serves requests through the framework runtime:
examples/react-router-demo/test/react-router.smoke.e2e.test.ts#L202
AssertionError: expected { schemaVersion: '1', …(11) } to match object { storage: { namespaces: { …(1) } } }
(27 matching properties omitted from actual)
- Expected
+ Received
{
"storage": {
- "namespaces": {
"__unbound__": {
+ "id": "__unbound__",
+ "kind": "postgres-unbound-schema",
"tables": {
+ "post": {
+ "columns": {
+ "createdAt": {
+ "codecId": "pg/timestamptz@1",
+ "default": {
+ "expression": "now()",
+ "kind": "function",
+ },
+ "nativeType": "timestamptz",
+ "nullable": false,
+ },
+ "id": {
+ "codecId": "sql/char@1",
+ "nativeType": "character",
+ "nullable": false,
+ "typeParams": {
+ "length": 36,
+ },
+ },
+ "title": {
+ "codecId": "pg/text@1",
+ "nativeType": "text",
+ "nullable": false,
+ },
+ "userId": {
+ "codecId": "pg/text@1",
+ "nativeType": "text",
+ "nullable": false,
+ },
+ },
+ "foreignKeys": [
+ {
+ "constraint": true,
+ "index": true,
+ "source": {
+ "columns": [
+ "userId",
+ ],
+ "namespaceId": "__unbound__",
+ "tableName": "post",
+ },
+ "target": {
+ "columns": [
+ "id",
+ ],
+ "namespaceId": "__unbound__",
+ "tableName": "user",
+ },
+ },
+ ],
+ "indexes": [],
+ "primaryKey": {
+ "columns": [
+ "id",
+ ],
+ },
+ "uniques": [],
+ },
"user": {
"columns": {
- "nickname": Anything,
+ "createdAt": {
+ "codecId": "pg/timestamptz@1",
+ "default": {
+ "expression": "now()",
+ "kind": "function",
+ },
+ "nativeType": "timestamptz",
+ "nullable": false,
+ },
+ "email": {
+ "codecId": "pg/text@1",
+ "nativeType": "text",
+ "nullable": false,
},
+ "id": {
+ "codecId": "sql/char@1",
+ "nativeType": "character",
+ "nullable": false,
+ "typeParams": {
+ "length": 36,
},
},
+ "nickname": {
+ "codecId": "pg/text@1",
+ "nativeType": "text",
+ "nullable": true,
},
},
+ "foreignKeys": [],
+ "indexes": [],
+ "primaryKey": {
+ "columns": [
+ "id",
+ ],
+ },
+ "uniques": [],
+ },
+ },
+ },
+ "storageHash": "sha256:9c0e8fe9a00e30f3cb4c2dd21fa7b2b29ae10cfbe95121108b382685059fdc1a",
},
}
❯ test/react-router.smoke.e2e.test.ts:202:53
|
|
test/offline-emit.e2e.test.ts > react-router-demo offline emit (e2e) > emits contract artifacts with no DATABASE_URL set:
examples/react-router-demo/test/offline-emit.e2e.test.ts#L76
AssertionError: expected { schemaVersion: '1', …(11) } to match object { storage: { namespaces: { …(1) } } }
(27 matching properties omitted from actual)
- Expected
+ Received
{
"storage": {
- "namespaces": {
"__unbound__": {
+ "id": "__unbound__",
+ "kind": "postgres-unbound-schema",
"tables": {
+ "post": {
+ "columns": {
+ "createdAt": {
+ "codecId": "pg/timestamptz@1",
+ "default": {
+ "expression": "now()",
+ "kind": "function",
+ },
+ "nativeType": "timestamptz",
+ "nullable": false,
+ },
+ "id": {
+ "codecId": "sql/char@1",
+ "nativeType": "character",
+ "nullable": false,
+ "typeParams": {
+ "length": 36,
+ },
+ },
+ "title": {
+ "codecId": "pg/text@1",
+ "nativeType": "text",
+ "nullable": false,
+ },
+ "userId": {
+ "codecId": "pg/text@1",
+ "nativeType": "text",
+ "nullable": false,
+ },
+ },
+ "foreignKeys": [
+ {
+ "constraint": true,
+ "index": true,
+ "source": {
+ "columns": [
+ "userId",
+ ],
+ "namespaceId": "__unbound__",
+ "tableName": "post",
+ },
+ "target": {
+ "columns": [
+ "id",
+ ],
+ "namespaceId": "__unbound__",
+ "tableName": "user",
+ },
+ },
+ ],
+ "indexes": [],
+ "primaryKey": {
+ "columns": [
+ "id",
+ ],
+ },
+ "uniques": [],
+ },
"user": {
"columns": {
- "email": Anything,
+ "createdAt": {
+ "codecId": "pg/timestamptz@1",
+ "default": {
+ "expression": "now()",
+ "kind": "function",
+ },
+ "nativeType": "timestamptz",
+ "nullable": false,
+ },
+ "email": {
+ "codecId": "pg/text@1",
+ "nativeType": "text",
+ "nullable": false,
+ },
+ "id": {
+ "codecId": "sql/char@1",
+ "nativeType": "character",
+ "nullable": false,
+ "typeParams": {
+ "length": 36,
},
},
},
+ "foreignKeys": [],
+ "indexes": [],
+ "primaryKey": {
+ "columns": [
+ "id",
+ ],
},
+ "uniques": [],
+ },
+ },
},
+ "storageHash": "sha256:c9ceab1ec344e64f4a3799b97e7d458c360b422993dc71895758726ebdac9e0a",
},
}
❯ test/offline-emit.e2e.test.ts:76:55
|