@decohere/testing 0.0.1-dev.128 → 0.0.1-dev.130
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.
- package/README.md +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Vitest helpers for testing Decohere code ([ADR 0015](../../docs/adr/0015-core-de
|
|
|
10
10
|
| `spyOnConstructor` | Spies on a class constructor without losing `design:paramtypes`, so crucible can still inject it ([how-to](../../docs/testing/how-tos/vitest-constructor-spy-with-di.md)) |
|
|
11
11
|
| `flushPromises` | Waits until pending promise callbacks have run |
|
|
12
12
|
|
|
13
|
-
This repo routes file access to memfs in a Vitest setup file ([`
|
|
13
|
+
This repo routes file access to memfs in a Vitest setup file ([`vitest.setup.ts`](../../vitest.setup.ts)), with `__mocks__/fs.ts` re-exporting memfs:
|
|
14
14
|
|
|
15
15
|
```ts
|
|
16
16
|
// vitest setup file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decohere/testing",
|
|
3
|
-
"version": "0.0.1-dev.
|
|
3
|
+
"version": "0.0.1-dev.130",
|
|
4
4
|
"description": "Test helpers for Decohere code under Vitest: memfs file systems, a mock logger, constructor spies that keep DI metadata.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@decohere/core": "0.0.1-dev.
|
|
36
|
+
"@decohere/core": "0.0.1-dev.130"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {},
|
|
39
39
|
"peerDependencies": {
|