test: prune trivial error and layout tests (#8400)
Co-authored-by: t3-code[bot] <269035359+t3-code[bot]@users.noreply.github.com> Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
1 parent
73f8cfc023
commit
f6f2be32d8
10 files changed
+3
-213
No files matched your search
@@ -1,20 +0,0 @@
|
||||
import { assert, it } from "@effect/vitest";
|
||||
|
||||
import { CatalogDependencyResolutionError, resolveCatalogDependencies } from "./resolve-catalog.ts";
|
||||
|
||||
it("reports unresolved catalog dependencies with lookup context", () => {
|
||||
try {
|
||||
resolveCatalogDependencies({ effect: "catalog:runtime" }, {}, "apps/server");
|
||||
assert.fail("Expected catalog resolution to fail.");
|
||||
} catch (error) {
|
||||
assert.instanceOf(error, CatalogDependencyResolutionError);
|
||||
assert.equal(error.workspacePackage, "apps/server");
|
||||
assert.equal(error.dependencyName, "effect");
|
||||
assert.equal(error.catalogSpec, "catalog:runtime");
|
||||
assert.equal(error.catalogKey, "runtime");
|
||||
assert.equal(
|
||||
error.message,
|
||||
"Unable to resolve 'catalog:runtime' for apps/server dependency 'effect'. Expected key 'runtime' in root workspace catalog.",
|
||||
);
|
||||
}
|
||||
});
|
||||
@@ -1,6 +1,6 @@
|
||||
import * as Schema from "effect/Schema";
|
||||
|
||||
export class CatalogDependencyResolutionError extends Schema.TaggedErrorClass<CatalogDependencyResolutionError>()(
|
||||
class CatalogDependencyResolutionError extends Schema.TaggedErrorClass<CatalogDependencyResolutionError>()(
|
||||
"CatalogDependencyResolutionError",
|
||||
{
|
||||
workspacePackage: Schema.String,
|
||||
|
||||
Reference in new issue
Block a user