Skip to content

Commit fc0d476

Browse files
authored
Merge pull request #18 from launchql/upgrade-ver
add insertUser function
2 parents 350f0c5 + 2a9e05b commit fc0d476

File tree

3 files changed

+11
-21
lines changed

3 files changed

+11
-21
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"lerna": "^8.2.3",
4141
"prettier": "^3.0.2",
4242
"rimraf": "4.4.1",
43-
"supabase-test": "^0.0.10",
43+
"supabase-test": "^0.0.11",
4444
"ts-jest": "^29.4.5",
4545
"ts-node": "^10.9.2",
4646
"typescript": "^5.9.3"

packages/hello-world/__tests__/hello-world.test.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { getConnections, PgTestClient } from 'supabase-test';
2-
import { insertUser } from '../test-utils';
1+
import { getConnections, PgTestClient, insertUser } from 'supabase-test';
32

43
let db: PgTestClient;
54
let pg: PgTestClient;
@@ -12,18 +11,15 @@ let user3: any;
1211
const users = [
1312
{
1413
id: '550e8400-e29b-41d4-a716-446655440001',
15-
16-
name: 'Tutorial User 1'
14+
1715
},
1816
{
1917
id: '550e8400-e29b-41d4-a716-446655440002',
20-
21-
name: 'Tutorial User 2'
18+
2219
},
2320
{
2421
id: '550e8400-e29b-41d4-a716-446655440003',
25-
26-
name: 'Tutorial User 3'
22+
2723
}
2824
];
2925

pnpm-lock.yaml

Lines changed: 6 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)