@cslug/testing 0.2.0 → 0.3.0

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 +15 -15
  2. package/src/fakes.ts +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cslug/testing",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Test kit: testApp(), HTTP and HTML assertions, database isolation, fakes, time travel.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -28,20 +28,20 @@
28
28
  "bun": ">=1.3.14"
29
29
  },
30
30
  "peerDependencies": {
31
- "@cslug/core": "0.2.0",
32
- "@cslug/validation": "0.2.0",
33
- "@cslug/http": "0.2.0",
34
- "@cslug/vue": "0.2.0",
35
- "@cslug/database": "0.2.0",
36
- "@cslug/redis": "0.2.0",
37
- "@cslug/queue": "0.2.0",
38
- "@cslug/auth": "0.2.0",
39
- "@cslug/mail": "0.2.0",
40
- "@cslug/notification": "0.2.0",
41
- "@cslug/storage": "0.2.0",
42
- "@cslug/webhook": "0.2.0",
43
- "@cslug/ai": "0.2.0",
44
- "@cslug/cli": "0.2.0"
31
+ "@cslug/core": "0.3.0",
32
+ "@cslug/validation": "0.3.0",
33
+ "@cslug/http": "0.3.0",
34
+ "@cslug/vue": "0.3.0",
35
+ "@cslug/database": "0.3.0",
36
+ "@cslug/redis": "0.3.0",
37
+ "@cslug/queue": "0.3.0",
38
+ "@cslug/auth": "0.3.0",
39
+ "@cslug/mail": "0.3.0",
40
+ "@cslug/notification": "0.3.0",
41
+ "@cslug/storage": "0.3.0",
42
+ "@cslug/webhook": "0.3.0",
43
+ "@cslug/ai": "0.3.0",
44
+ "@cslug/cli": "0.3.0"
45
45
  },
46
46
  "peerDependenciesMeta": {
47
47
  "@cslug/validation": {
package/src/fakes.ts CHANGED
@@ -18,6 +18,8 @@ export const fakeInstaller = (name: string) => installers.get(name)
18
18
  const lazy: Record<string, () => Promise<FakeInstaller>> = {
19
19
  queue: async () => (await import('@cslug/queue')).installQueueFake,
20
20
  mail: async () => (await import('@cslug/mail')).installMailFake,
21
+ storage: async () => (await import('@cslug/storage')).installStorageFake,
22
+ notify: async () => (await import('@cslug/notification')).installNotificationFake,
21
23
  }
22
24
 
23
25
  /** The installer for `name`: registered, or loaded from its package. Undefined if neither. */
@@ -80,5 +82,7 @@ declare module './fakes' {
80
82
  events: EventFake
81
83
  queue: import('@cslug/queue').QueueFake
82
84
  mail: import('@cslug/mail').MailFake
85
+ storage: import('@cslug/storage').StorageFake
86
+ notify: import('@cslug/notification').NotificationFake
83
87
  }
84
88
  }