@kunk/testing 3.0.16 → 3.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +13 -15
  2. package/src/index.ts +10 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kunk/testing",
3
- "version": "3.0.16",
3
+ "version": "3.0.18",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -10,26 +10,24 @@
10
10
  ],
11
11
  "exports": {
12
12
  ".": {
13
- "bun": "./src/index.ts",
14
13
  "types": "./dist/index.d.mts",
15
- "import": "./dist/index.mjs",
16
14
  "default": "./dist/index.mjs"
17
15
  }
18
16
  },
19
- "scripts": {
20
- "clean": "rm -rf dist .turbo",
21
- "build": "tsdown",
22
- "version:patch": "bun pm version patch",
23
- "deploy": "bun publish"
24
- },
25
17
  "dependencies": {
26
- "@kunk/api": "3.0.14",
27
- "@kunk/database": "3.0.14",
28
- "@kunk/server": "3.0.14",
29
- "@kunk/model": "3.0.14",
30
- "@kunk/docker": "3.0.14"
18
+ "@kunk/api": "3.0.18",
19
+ "@kunk/database": "3.0.18",
20
+ "@kunk/model": "3.0.18",
21
+ "@kunk/docker": "3.0.18",
22
+ "@kunk/server": "3.0.18"
31
23
  },
32
24
  "publishConfig": {
33
25
  "access": "public"
26
+ },
27
+ "scripts": {
28
+ "clean": "rm -rf dist .turbo",
29
+ "build": "tsdown",
30
+ "version:patch": "bun pm version patch",
31
+ "deploy": "pnpm publish --no-git-checks"
34
32
  }
35
- }
33
+ }
package/src/index.ts ADDED
@@ -0,0 +1,10 @@
1
+ import { db } from "./setup"
2
+ import { expect } from "bun:test"
3
+
4
+ export function expectToMatchObject<T>(from: T, toMatch: Partial<T>) {
5
+ return expect(from).toMatchObject(toMatch)
6
+ }
7
+
8
+ export async function CLEAR_TEST_DATA() {
9
+ await db.clear()
10
+ }