We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
以下のように page.route 二回に分けて定義すると、最初のモック定義は失われてしまいそうだ
page.route
page.route('/path/to/', async (route) => { if (route.request().method() === 'PATCH') { await route.fulfill({ json: { }, }) } }) page.route('/path/to/', async (route) => { if (route.request().method() === 'GET') { await route.fulfill({ json: {}, }) } })
以下のように page.route の関数1回で複数メソッドに対しての定義を一気にする必要がありそうだ
page.route('/path/to/', async (route) => { if (route.request().method() === 'PATCH') { await route.fulfill({ json: { }, }) } else if (route.request().method() === 'GET') { await route.fulfill({ json: {}, }) } })
何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。
https://line.me/ti/g2/eEPltQ6Tzh3pYAZV8JXKZqc7PJ6L0rpm573dcQ
https://github.com/YumaInaura/YumaInaura
The text was updated successfully, but these errors were encountered:
No branches or pull requests
バージョン
概要
以下のように
page.route
二回に分けて定義すると、最初のモック定義は失われてしまいそうだ以下のように
page.route
の関数1回で複数メソッドに対しての定義を一気にする必要がありそうだチャットメンバー募集
何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。
https://line.me/ti/g2/eEPltQ6Tzh3pYAZV8JXKZqc7PJ6L0rpm573dcQ
プロフィール・経歴
https://github.com/YumaInaura/YumaInaura
The text was updated successfully, but these errors were encountered: