fix: vitest rejects pattern + runtime config
- Fix 4 liquid-render tests: expect(async()=>{}).rejects → expect(promise).rejects
- proman.yaml: runtime bun → node (matches actual stack)
- package.json: test script uses vitest directly (avoid proman recursion)
- Add changeset for 0.2.1 patch (clean dist)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
---
|
||||
"@ocas/core": patch
|
||||
"@ocas/fs": patch
|
||||
"@ocas/cli": patch
|
||||
---
|
||||
|
||||
Clean build — remove stale dist/ artifacts (variable-store.js) from 0.2.0 that referenced deleted bun:sqlite module
|
||||
+1
-1
@@ -11,7 +11,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"build": "proman build",
|
||||
"test": "proman test",
|
||||
"test": "vitest run",
|
||||
"check": "proman check",
|
||||
"format": "proman format"
|
||||
},
|
||||
|
||||
@@ -623,13 +623,13 @@ describe("Suite 4: Render Flow Integration", () => {
|
||||
);
|
||||
store.var.set(`@ocas/template/text/${nodeSchema}`, template);
|
||||
|
||||
await expect(async () => {
|
||||
await renderWithTemplate(store, nodeHash, {
|
||||
await expect(
|
||||
renderWithTemplate(store, nodeHash, {
|
||||
resolution: 1.0,
|
||||
decay: 0.5,
|
||||
epsilon: 0.01,
|
||||
});
|
||||
}).rejects.toThrow();
|
||||
}),
|
||||
).rejects.toThrow();
|
||||
} finally {
|
||||
await cleanup();
|
||||
}
|
||||
@@ -970,13 +970,13 @@ describe("Suite 7: Error Handling & Edge Cases", () => {
|
||||
);
|
||||
store.var.set(`@ocas/template/text/${parentSchema}`, template);
|
||||
|
||||
await expect(async () => {
|
||||
await renderWithTemplate(store, parentHash, {
|
||||
await expect(
|
||||
renderWithTemplate(store, parentHash, {
|
||||
resolution: 1.0,
|
||||
decay: 0.5,
|
||||
epsilon: 0.01,
|
||||
});
|
||||
}).rejects.toThrow(/decay/);
|
||||
}),
|
||||
).rejects.toThrow(/decay/);
|
||||
} finally {
|
||||
await cleanup();
|
||||
}
|
||||
@@ -1009,13 +1009,13 @@ describe("Suite 7: Error Handling & Edge Cases", () => {
|
||||
);
|
||||
store.var.set(`@ocas/template/text/${parentSchema}`, template);
|
||||
|
||||
await expect(async () => {
|
||||
await renderWithTemplate(store, parentHash, {
|
||||
await expect(
|
||||
renderWithTemplate(store, parentHash, {
|
||||
resolution: 1.0,
|
||||
decay: 0.5,
|
||||
epsilon: 0.01,
|
||||
});
|
||||
}).rejects.toThrow();
|
||||
}),
|
||||
).rejects.toThrow();
|
||||
} finally {
|
||||
await cleanup();
|
||||
}
|
||||
@@ -1048,13 +1048,13 @@ describe("Suite 7: Error Handling & Edge Cases", () => {
|
||||
);
|
||||
store.var.set(`@ocas/template/text/${parentSchema}`, template);
|
||||
|
||||
await expect(async () => {
|
||||
await renderWithTemplate(store, parentHash, {
|
||||
await expect(
|
||||
renderWithTemplate(store, parentHash, {
|
||||
resolution: 1.0,
|
||||
decay: 0.5,
|
||||
epsilon: 0.01,
|
||||
});
|
||||
}).rejects.toThrow(/decay/);
|
||||
}),
|
||||
).rejects.toThrow(/decay/);
|
||||
} finally {
|
||||
await cleanup();
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
name: "@ocas/workspace"
|
||||
runtime: bun
|
||||
runtime: node
|
||||
packages:
|
||||
- name: "@ocas/core"
|
||||
path: packages/core
|
||||
|
||||
Reference in New Issue
Block a user