diff --git a/types/emscripten/emscripten-tests.ts b/types/emscripten/emscripten-tests.ts index bb85037eecc642..6511a871407c26 100644 --- a/types/emscripten/emscripten-tests.ts +++ b/types/emscripten/emscripten-tests.ts @@ -166,6 +166,8 @@ function FSTest(): void { const lookup = FS.lookupPath("path", { parent: true, follow: false }); // $ExpectType number lookup.node.mode; + // $ExpectType any + lookup.node.contents; const analyze = FS.analyzePath("path"); // $ExpectType boolean diff --git a/types/emscripten/index.d.ts b/types/emscripten/index.d.ts index fbbecd971caf74..8481efd6cbea80 100644 --- a/types/emscripten/index.d.ts +++ b/types/emscripten/index.d.ts @@ -163,6 +163,8 @@ declare namespace FS { parent: FSNode; mount: Mount; mounted?: Mount; + // Supported in MEMFS + contents?: any; id: number; name: string; mode: number; diff --git a/types/jasmine/index.d.ts b/types/jasmine/index.d.ts index 5ea32c42a627d6..f13c66e47241a4 100644 --- a/types/jasmine/index.d.ts +++ b/types/jasmine/index.d.ts @@ -306,6 +306,14 @@ declare namespace jasmine { * @default false */ stopOnSpecFailure?: boolean | undefined; + /** + * Whether to forbid duplicate spec or suite names. If set to true, using + * the same name multiple times in the same immediate parent suite is an + * error. + * @since 5.5.0 + * @default false + */ + forbidDuplicateNames?: boolean | undefined; /** * Whether to fail the spec if it ran no expectations. By default * a spec that ran no expectations is reported as passed. Setting this diff --git a/types/jasmine/jasmine-tests.ts b/types/jasmine/jasmine-tests.ts index fccee53ce98f5b..45f5d63f8c7095 100644 --- a/types/jasmine/jasmine-tests.ts +++ b/types/jasmine/jasmine-tests.ts @@ -14,6 +14,7 @@ import JasmineClass from "jasmine"; jasmineClass.addMatchingHelperFiles(["dir/**/*.js"]); jasmineClass.env.configure({ + forbidDuplicateNames: true, random: true, failSpecWithNoExpectations: true, hideDisabled: true,