Skip to content

Commit f5508ee

Browse files
committed
✅ @prisma/generator-helper, @prisma/internals, vitest, @vitest/coverage-v8
1 parent 09627e8 commit f5508ee

File tree

4 files changed

+48
-14
lines changed

4 files changed

+48
-14
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,21 @@ jobs:
55
Ubuntu:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v1
9-
- uses: actions/setup-node@v1
8+
- name: Checkout source code.
9+
uses: actions/checkout@v3
10+
11+
- name: Install Node.js
12+
uses: actions/setup-node@v3
1013
with:
11-
node-version: 16.x
14+
node-version: 18.x
15+
1216
- uses: actions/cache@v3
1317
with:
1418
path: ~/.npm
1519
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
1620
restore-keys: |
1721
${{ runner.os }}-node-
22+
1823
- run: npm install
1924
- run: npm run build
2025
- run: npm run test

package.json

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"scripts": {
1111
"build": "rimraf lib && tsc",
1212
"dev": "rimraf lib && tsc --watch",
13-
"test": "ts-node test/index.ts"
13+
"test": "ts-node test/index.ts",
14+
"test:cov": "vitest run --coverage"
1415
},
1516
"repository": {
1617
"type": "git",
@@ -32,20 +33,23 @@
3233
},
3334
"homepage": "https://github.com/samchon/prisma-markdown",
3435
"devDependencies": {
35-
"@prisma/client": "^5.0.0",
36-
"@types/node": "^20.6.0",
37-
"prettier": "^3.0.3",
38-
"prisma": "^5.0.0",
39-
"rimraf": "^5.0.1",
40-
"ts-node": "^10.9.1",
41-
"typescript": "^5.2.2"
36+
"@prisma/client": "^6.4.1",
37+
"@types/node": "^22.13.9",
38+
"@vitest/coverage-v8": "3.0.7",
39+
"prettier": "^3.5.3",
40+
"prisma": "^6.4.1",
41+
"rimraf": "^6.0.1",
42+
"ts-node": "^10.9.2",
43+
"typescript": "^5.8.2",
44+
"vitest": "^3.0.7"
4245
},
4346
"dependencies": {
44-
"@prisma/generator-helper": "^5.0.0"
47+
"@prisma/generator-helper": "^6.4.1",
48+
"@prisma/internals": "^6.4.1"
4549
},
4650
"peerDependencies": {
47-
"@prisma/client": ">= 5.0.0",
48-
"prisma": ">= 5.0.0"
51+
"@prisma/client": ">= 6.0.0",
52+
"prisma": ">= 6.0.0"
4953
},
5054
"files": [
5155
"lib",

src/writers/MarkdownWriter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ export namespace MarkdownWriter {
188188

189189
const newbie: DMMF.Model = {
190190
name,
191+
schema: null,
191192
dbName: null,
192193
fields: [
193194
{

vitest.config.mjs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/// <reference types="vitest" />
2+
import path from "path";
3+
import { defineConfig } from "vitest/config";
4+
5+
export default defineConfig({
6+
test: {
7+
include: ["test/**/*.{test,spec}.ts"],
8+
exclude: [
9+
"node_modules/**",
10+
"dist/**",
11+
"lib/**",
12+
"**/.{idea,git,cache,output,temp,github,.vscode,.devcontainer}/**",
13+
"**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*"
14+
],
15+
clearMocks: true,
16+
passWithNoTests: true,
17+
globals: true,
18+
watch: false,
19+
coverage: {
20+
provider: "v8",
21+
reporter: ["text"],
22+
},
23+
},
24+
});

0 commit comments

Comments
 (0)