Skip to content

Commit

Permalink
refactor(tests): database schema tests are now contained under the dr…
Browse files Browse the repository at this point in the history
…izzle-schema-checker package (#29)

* init

* fix types

* fix tests ?
  • Loading branch information
adrienZ authored Sep 15, 2024
1 parent 28f15b1 commit 194df2b
Show file tree
Hide file tree
Showing 18 changed files with 187 additions and 1,691 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: npx nypm@latest i && cd playground && npx nypm@latest i
- name: Playground prepare
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
"lint": "eslint .",
"test": "NUXT_SESSION_PASSWORD='7kP@G!hYvZ2#pL1mQx%3vU8c&RwT4oAs9bFnD#' vitest run",
"test:ci": "pnpm test -- --coverage --reporter=default --reporter=junit && pnpm test:bun",
"test:ci": "pnpm test -- --coverage --reporter=default --reporter=junit",
"test:watch": "vitest watch",
"test:bun": "bun test ./src/runtime/database/tests/bun-sqlite.test.bun",
"test:types": "vue-tsc --noEmit && cd playground && pnpm i && pnpm exec nuxt prepare && vue-tsc --noEmit"
},
"dependencies": {
Expand All @@ -41,9 +40,9 @@
"consola": "^3.2.3",
"db0": "^0.1.4",
"drizzle-orm": "^0.33.0",
"drizzle-schema-checker": "^1.0.3",
"node-ipinfo": "^3.5.3",
"oslo": "^1.2.1",
"zod": "^3.23.8"
"oslo": "^1.2.1"
},
"devDependencies": {
"@libsql/client": "^0.10.0",
Expand Down
2 changes: 0 additions & 2 deletions playground/drizzle.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { defineConfig } from "drizzle-kit";
import path from "node:path";

export default defineConfig({
// out: "./server/database/migrations",
// schema: "./server/database/schema/index.ts",
dialect: "sqlite",
dbCredentials: {
url: path.resolve(__dirname, ".data/db.sqlite3"),
Expand Down
1 change: 1 addition & 0 deletions playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"nuxt": "^3.13.1"
},
"devDependencies": {
"@iconify-json/heroicons": "^1.2.0",
"@iconify-json/simple-icons": "^1.2.1",
"drizzle-kit": "^0.24.2"
},
Expand Down
3 changes: 3 additions & 0 deletions playground/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

156 changes: 153 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 194df2b

Please sign in to comment.