Skip to content

Commit

Permalink
test(*): fix integration tests to be compatible with 0.23.0-rc14
Browse files Browse the repository at this point in the history
  • Loading branch information
skowrons committed Nov 22, 2024
1 parent 50b6f20 commit 7cb545e
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Dockerfile to run e2e integration tests against a test PocketBase server
FROM node:16-alpine3.16

ARG POCKETBASE_VERSION=0.23.0-rc13
ARG POCKETBASE_VERSION=0.23.0-rc14

WORKDIR /app/output/
WORKDIR /app/
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"lint:fix": "npm run lint -- --fix",
"prettier": "prettier src test --check",
"prettier:fix": "npm run prettier -- --write",
"format": "npm run prettier:fix && npm run lint:fix"
"format": "npm run prettier:fix && npm run lint:fix",
"integration:local": "docker build . -t pocketbase-typegen:latest && docker run --name integration_test pocketbase-typegen:latest"
},
"author": "@patmood",
"license": "ISC",
Expand Down
1 change: 1 addition & 0 deletions test/__snapshots__/fromJSON.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export type OtpsRecord = {
id: string
password: string
recordRef: string
sentTo?: string
updated?: IsoDateString
}
Expand Down
Binary file modified test/integration/pb_data/data.db
Binary file not shown.
16 changes: 15 additions & 1 deletion test/pb_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,20 @@
"presentable": false,
"system": true,
"type": "autodate"
},
{
"autogeneratePattern": "",
"hidden": true,
"id": "text3866985172",
"max": 0,
"min": 0,
"name": "sentTo",
"pattern": "",
"presentable": false,
"primaryKey": false,
"required": false,
"system": true,
"type": "text"
}
],
"indexes": [
Expand Down Expand Up @@ -1407,4 +1421,4 @@
"system": false,
"viewQuery": "select id, post_relation_field, text_field, json_field from everything"
}
]
]
1 change: 1 addition & 0 deletions test/pocketbase-types-example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export type OtpsRecord = {
id: string
password: string
recordRef: string
sentTo?: string
updated?: IsoDateString
}

Expand Down

0 comments on commit 7cb545e

Please sign in to comment.