mirror of
https://github.com/morluto/rea.git
synced 2026-11-19 05:02:40 +00:00
test: name tests after the behavior they check, not a removed limit (#11618)
* test: name tests after the behavior they check, not a removed limit Thirty-one test titles still said "beyond/above/after the former ..." for limits that no longer exist. They now state what the test checks (the size, count or depth it exercises, or the bound that still applies, such as max_snapshot_bytes for the managed manifest snapshot). Test bodies are unchanged. Refs #10515 * test: say "more than" where a title counts only part of its fixture
This commit is contained in:
1 parent
34ec903786
commit
d6af08e4be
26 files changed
+31
-31
No files matched your search
@@ -144,7 +144,7 @@ it("limits unary-plus keys to transparent numeric literals", () => {
|
||||
).toBeNull();
|
||||
});
|
||||
|
||||
it("reads nested inline object spreads beyond the former evaluator depth cap", () => {
|
||||
it("reads an inline object nested in 1,024 spreads", () => {
|
||||
let object = t.objectExpression([
|
||||
t.objectProperty(t.identifier("stdio"), t.stringLiteral("inherit")),
|
||||
]);
|
||||
|
||||
@@ -5,7 +5,7 @@ import type { JsonValue } from "../jsonValue.js";
|
||||
import { findApplicationFeatureSeeds } from "./javascriptFeatureSeed.js";
|
||||
|
||||
describe("application feature seed property matching", () => {
|
||||
it("finds strings after the former property count ceiling", () => {
|
||||
it("finds a string after 512 other property values", () => {
|
||||
const node = graphNodeWithProperties({
|
||||
values: Array.from({ length: 513 }, (_, index) => `value-${index}`),
|
||||
});
|
||||
@@ -27,7 +27,7 @@ describe("application feature seed property matching", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it("finds strings deeper than the former traversal cutoff", () => {
|
||||
it("finds a string seven properties deep", () => {
|
||||
const node = graphNodeWithProperties({
|
||||
one: {
|
||||
two: { three: { four: { five: { six: { seven: "deep-value" } } } } },
|
||||
|
||||
@@ -331,7 +331,7 @@ describe("tRPC binding identity and bundled syntax", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it("preserves procedure paths beyond the former nesting cutoff", () => {
|
||||
it("preserves a procedure path of 64 segments", () => {
|
||||
const path = Array.from({ length: 64 }, (_, i) => `router${i}`).join(".");
|
||||
expect(rpcEndpoints(`root.${path}.useQuery();`)).toEqual([
|
||||
{ kind: "network", value: path, mechanism: "trpc:procedure:useQuery" },
|
||||
|
||||
@@ -136,7 +136,7 @@ const node = (
|
||||
evidenceContexts,
|
||||
);
|
||||
|
||||
it("accepts semantic module paths longer than the former schema ceiling", () => {
|
||||
it("accepts a semantic module path of more than 600 segments", () => {
|
||||
const modulePath = `${"segment/".repeat(600)}entry.js`;
|
||||
const evidenceContexts = new JavaScriptSemanticEvidenceContextRegistry();
|
||||
expect(
|
||||
|
||||
@@ -194,7 +194,7 @@ it("returns only the referenced evidence contexts with resolvable trace facts",
|
||||
);
|
||||
});
|
||||
|
||||
it("traverses paths beyond the former fixed depth ceiling", () => {
|
||||
it("traverses a path of 70 relations", () => {
|
||||
const original = semanticFixtureGraph();
|
||||
const input = constructionInput(original);
|
||||
const evidenceContexts = registryForGraph(original);
|
||||
|
||||
Reference in new issue
Block a user