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: 1 addition & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ untyped-import
untyped-type-import

[version]
^0.342.0
^0.343.0
12 changes: 6 additions & 6 deletions flow-typed/jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ type JestMockFn<TArguments extends ReadonlyArray<any>, TReturn> = {
/**
* Returns the current implementation, or undefined for an unimplemented mock.
*/
getMockImplementation(): void | ((...args: TArguments) => TReturn),
getMockImplementation(): undefined | ((...args: TArguments) => TReturn),
/**
* Accepts a function that should be used as the implementation of the mock.
* The mock itself will still record all calls that go into and instances
Expand Down Expand Up @@ -1001,22 +1001,22 @@ type JestDoneFn = {

/** Runs this function after every test inside this context */
declare function afterEach(
fn: (done: JestDoneFn) => ?Promise<unknown>,
fn: (done: JestDoneFn) => void | Promise<unknown>,
timeout?: number,
): void;
/** Runs this function before every test inside this context */
declare function beforeEach(
fn: (done: JestDoneFn) => ?Promise<unknown>,
fn: (done: JestDoneFn) => void | Promise<unknown>,
timeout?: number,
): void;
/** Runs this function after all tests have finished inside this context */
declare function afterAll(
fn: (done: JestDoneFn) => ?Promise<unknown>,
fn: (done: JestDoneFn) => void | Promise<unknown>,
timeout?: number,
): void;
/** Runs this function before any tests have started inside this context */
declare function beforeAll(
fn: (done: JestDoneFn) => ?Promise<unknown>,
fn: (done: JestDoneFn) => void | Promise<unknown>,
timeout?: number,
): void;

Expand Down Expand Up @@ -1148,7 +1148,7 @@ declare var it: {

declare function fit(
name: JestTestName,
fn: (done: JestDoneFn) => ?Promise<unknown>,
fn: (done: JestDoneFn) => void | Promise<unknown>,
timeout?: number,
): void;
/** An individual test unit */
Expand Down
1 change: 1 addition & 0 deletions flow-typed/npm/babel_v7.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -1255,6 +1255,7 @@ declare module '@babel/generator' {
code?: string | {[filename: string]: string, ...},
) => GeneratorResult;

// $FlowFixMe[name-already-bound]
declare export default (
ast: BabelNode,
options?: Options,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-relay": "^1.8.3",
"flow-api-translator": "0.340.0",
"flow-bin": "^0.342.0",
"flow-bin": "^0.343.0",
"flow-eslint": "0.340.0",
"flow-estree": "0.340.0",
"flow-parser": "0.340.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3395,10 +3395,10 @@ flow-api-translator@0.340.0:
flow-transform "0.340.0"
typescript "5.3.2"

flow-bin@^0.342.0:
version "0.342.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.342.0.tgz#de211291165039f8cc83355575b75a931bd09793"
integrity sha512-/ha9+RAUGF+G9o5hnBzpKCP5iZXzms0tMVi1Dp4zNvPfWo3dUF6qE8S0Q2zJMugX3f5DPqE4h3BaFSpWYQjhUA==
flow-bin@^0.343.0:
version "0.343.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.343.0.tgz#2aabed58e14f89df207f31c20071460b228161d8"
integrity sha512-JNu0HcN40ffhgWr91AwxNIHMLaEtq6uny2ubdPhH2xXoMba21px930aFmIUw1c5ui9S5LFN/AW04S6RwUkUw6w==

flow-enums-runtime@^0.0.6:
version "0.0.6"
Expand Down
Loading