MOCK FUNCTION Meaning in Japanese - translations and usage examples

[mɒk 'fʌŋkʃn]
[mɒk 'fʌŋkʃn]

Examples of using Mock function in English and their translations into Japanese

{-}
  • Colloquial category close
  • Ecclesiastic category close
  • Computer category close
  • Programming category close
Mock functions in Go.
If you have a mock function.
モック関数がある場合は。
An array that represents all calls that have been made into this mock function.
モック関数に行われた全てのコールを示す配列を返します。
If you have a mock function, you can use.
あるモック関数があるとき、。
Accepts a value that will be returned whenever the mock function is called.
モック関数が呼ばれるたびに返す値を受け取ります。
Learn about Snapshot Testing, Mock Functions, and more in our in-depth guides.
スナップショットテスト、モック関数などの詳細なガイド。
Accepts a value that will be returned for one call to the mock function.
モック関数を1回呼び出したときに返す値を受け取ります。
You can create a mock function with jest. fn().
Fn()関数でモック関数を作成できます。
Mock functions can also be used to inject test values into your code during a test.
モック関数はテスト中のコードにテスト用の値を注入するのにも利用できます。
Returns a Jest mock function.
Jestのモック関数を返します。
Mock functions are also very effective in code that uses a functional continuation-passing style.
モック関数は関数的な継続渡し方式を利用するコードでもとても効果的です。
Returns a new, unused mock function.
新しい、未使用のモック関数を返します。
These mock functions give us methods to assert whether the actions were called or not.
これらモック関数は、アクションが呼び出された、または呼び出されていない、かどうかを検証するメソッドを提供します。
The actions are jest mock functions.
アクションは、Jestのモック関数です
For example: A mock function that has been instantiated twice would have the following mock. instances array.
例:2回インスタンス化されたモック関数は次のようなmock.instances配列を持ちます。
For example, if you want to check that a mock function is called with a number.
例えば、モック関数が数字の引数を与えられて呼び出されたことを確認するには。
Any calls to the mock function that throw an error are not counted toward the number of times the function returned.
例外が発生したモック関数の呼び出しは、関数の返した回数としてカウントされません。
Can be chained so that successive calls to the mock function return different values.
次のモック関数へのコールが異なる値を返せるようチェーンすることができます。
In order to track calls to the constructor,replace the function returned by the HOF with a Jest mock function.
コンストラクタの呼び出しを追跡するには、高階関数が返す関数をJestのモック関数に置換します。
If no implementation is given, the mock function will return undefined when invoked.
実装が与えられなければ、モック関数は実行時にundefinedを返します。
Custom Matchers Finally, in order to make it simpler to assert how mock functions have been.
最後にモック関数がどのように呼ばれたかを検査するのをシンプルにするため、いくつかのカスタムマッチャを用意しておきました。
To test this function, we can use a mock function, and inspect the mock's state to ensure the callback is invoked as expected.
この関数をテストするのにモック関数を利用して、コールバックが期待通り呼び出されることを確かめるためにモックの状態を見ることができます。
RequireActual(moduleName) in your manual mock and amending it with mock functions before exporting it.
RequireActual(moduleName)関数で本物を呼び出してエクスポートする前にそれらをモック関数に置き換えるようにすると便利です。
If the last call to the mock function threw an error, then this matcher will fail no matter what value you provided as the expected return value.
モック関数の最後の呼び出しで例外が発生した場合、期待した値としてどんな値を指定したとしても、このマッチャは無条件に失敗します。
The mockImplementation method is usefulwhen you need to define the default implementation of a mock function that is created from another module.
MockImplementationメソッドは他のモジュールによって作成されたモック関数のデフォルトの実装を定義したいときに便利です。
There are two ways to mock functions: Either by creating a mock function to use in test code, or writing a manual mock to override a module dependency.
関数をモックするには2つの方法があります:テストコードの中でモック関数を作成するか、manualmockを作成してモジュールの依存性を上書きするかです。
You can optionally provide a name for your mock functions, which will be displayed instead of"jest.
必要に応じてモック関数に名前を与えて、テストエラー時の出力で"jest。
Mock functions make it easy to test the links between code by erasing the actual implementation of a function, capturing calls to the function(and the parameters passed in those calls), capturing instances of constructor functions when instantiated with new, and allowing test-time configuration of return values.
モック関数は機能の実際の実装を無くし、関数へのコール(そしてコールに渡されるパラメータ)をキャプチャし、newメソッドで初期化されたコンストラクタ関数のインスタンスをキャプチャすることでコード間の繋がりをテストすることを容易にし、テスト時の戻り値を設定することを可能にします。
When you need to recreate a complex behavior of a mock function such that multiple function calls produce different results, use the mockImplementationOnce method.
関数への複数回への呼び出しで異なる結果を得るように複雑な挙動をするモック関数を再作成する必要がある場合はmockImplementationOnceメソッドを使用して下さい。
To spy on method calls in all of these objects, we populate playSoundFile with another mock function,and store a reference to that same mock function in our test file, so it's available during tests.
これらすべてのオブジェクトのメソッドの呼び出しをスパイするために、playSoundFileとその他のモック関数を作成し、テスト中に利用できるようにその同一のモック関数への参照を保存しておきます。
Results: 58, Time: 0.0294

Word-for-word translation

Top dictionary queries

English - Japanese