@cubejs-backend/testing 0.34.52 → 0.34.54

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.
@@ -1,14 +1,14 @@
1
1
  cube(`Orders`, {
2
2
  sql: `
3
- select 1 as id, 100 as amount, 'new' status
3
+ select 1 as id, 100 as amount, 'new' status, '2024-01-01'::timestamptz created_at
4
4
  UNION ALL
5
- select 2 as id, 200 as amount, 'new' status
5
+ select 2 as id, 200 as amount, 'new' status, '2024-01-02'::timestamptz created_at
6
6
  UNION ALL
7
- select 3 as id, 300 as amount, 'processed' status
7
+ select 3 as id, 300 as amount, 'processed' status, '2024-01-03'::timestamptz created_at
8
8
  UNION ALL
9
- select 4 as id, 500 as amount, 'processed' status
9
+ select 4 as id, 500 as amount, 'processed' status, '2024-01-04'::timestamptz created_at
10
10
  UNION ALL
11
- select 5 as id, 600 as amount, 'shipped' status
11
+ select 5 as id, 600 as amount, 'shipped' status, '2024-01-05'::timestamptz created_at
12
12
  `,
13
13
  measures: {
14
14
  count: {
@@ -23,9 +23,20 @@ cube(`Orders`, {
23
23
  },
24
24
  },
25
25
  dimensions: {
26
+ id: {
27
+ sql: `id`,
28
+ type: `number`,
29
+ primaryKey: true,
30
+ },
31
+
26
32
  status: {
27
33
  sql: `status`,
28
34
  type: `string`,
29
35
  },
36
+
37
+ createdAt: {
38
+ sql: `created_at`,
39
+ type: `time`
40
+ }
30
41
  },
31
42
  });
@@ -20,6 +20,7 @@ cube(`SecurityContextTest`, {
20
20
  uid: {
21
21
  sql: `uid`,
22
22
  type: `string`,
23
+ primaryKey: true,
23
24
  },
24
25
  },
25
26
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cubejs-backend/testing",
3
- "version": "0.34.52",
3
+ "version": "0.34.54",
4
4
  "description": "Cube.js e2e tests",
5
5
  "author": "Cube Dev, Inc.",
6
6
  "license": "Apache-2.0",
@@ -87,13 +87,13 @@
87
87
  "birdbox-fixtures"
88
88
  ],
89
89
  "dependencies": {
90
- "@cubejs-backend/cubestore-driver": "^0.34.52",
90
+ "@cubejs-backend/cubestore-driver": "^0.34.54",
91
91
  "@cubejs-backend/dotenv": "^9.0.2",
92
- "@cubejs-backend/postgres-driver": "^0.34.52",
93
- "@cubejs-backend/query-orchestrator": "^0.34.52",
94
- "@cubejs-backend/schema-compiler": "^0.34.52",
95
- "@cubejs-backend/shared": "^0.34.47",
96
- "@cubejs-backend/testing-shared": "^0.34.52",
92
+ "@cubejs-backend/postgres-driver": "^0.34.54",
93
+ "@cubejs-backend/query-orchestrator": "^0.34.54",
94
+ "@cubejs-backend/schema-compiler": "^0.34.54",
95
+ "@cubejs-backend/shared": "^0.34.54",
96
+ "@cubejs-backend/testing-shared": "^0.34.54",
97
97
  "@cubejs-client/ws-transport": "^0.34.37",
98
98
  "dedent": "^0.7.0",
99
99
  "fs-extra": "^8.1.0",
@@ -142,5 +142,5 @@
142
142
  "eslintConfig": {
143
143
  "extends": "../cubejs-linter"
144
144
  },
145
- "gitHead": "768325caac3dfdc3b578d41355115dbf7049c23a"
145
+ "gitHead": "3cf12c552abab316c33cc26a73f917b34621e457"
146
146
  }