Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions types/emscripten/emscripten-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions types/emscripten/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ declare namespace FS {
parent: FSNode;
mount: Mount;
mounted?: Mount;
// Supported in MEMFS
contents?: any;
id: number;
name: string;
mode: number;
Expand Down
8 changes: 8 additions & 0 deletions types/jasmine/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions types/jasmine/jasmine-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import JasmineClass from "jasmine";
jasmineClass.addMatchingHelperFiles(["dir/**/*.js"]);

jasmineClass.env.configure({
forbidDuplicateNames: true,
random: true,
failSpecWithNoExpectations: true,
hideDisabled: true,
Expand Down