diff --git a/README.md b/README.md index 6a0bc1d..edc815f 100644 --- a/README.md +++ b/README.md @@ -15,12 +15,12 @@ Create a `db.json` file or run `json-server db.json` to create one with some def ```json { "posts": [ - { "id": "1", "title": "string" }, - { "id": "2", "title": "some post" } + { "id": "1", "title": "a title" }, + { "id": "2", "title": "another title" } ], "comments": [ - { "id": "1", "text": "some text", "postId": "1" }, - { "id": "2", "text": "some text", "postId": "1" } + { "id": "1", "text": "a comment about post 1", "postId": "1" }, + { "id": "2", "text": "another comment about post 1", "postId": "1" } ] } ``` diff --git a/package.json b/package.json index 9f7bd2b..063848e 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "watch-css": "npm run css -- --watch", "dev": "concurrently npm:watch-*", "build": "rm -rf lib && tsc && npm run css", - "test": "node --import tsx/esm --test src/**/*.test.ts", + "test": "npm run css && node --import tsx/esm --test src/*.test.ts", "lint": "eslint src --ext .ts --ignore-path .gitignore", "prepare": "husky install", "prepublishOnly": "npm run build"