From 14ee16dfc886343330a79f859ee08b2c60d5abeb Mon Sep 17 00:00:00 2001 From: Joshua Horowitz Date: Fri, 1 Mar 2024 23:17:23 -0800 Subject: [PATCH 01/20] docs: grammar fix (#5324) --- docs/api/expect.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/expect.md b/docs/api/expect.md index 04f4317b04d6..7b74129f6d53 100644 --- a/docs/api/expect.md +++ b/docs/api/expect.md @@ -836,7 +836,7 @@ test('spy function', () => { - **Type**: `(...args: any[]) => Awaitable` -This assertion checks if a function was called with certain parameters at it's last invocation. Requires a spy function to be passed to `expect`. +This assertion checks if a function was called with certain parameters at its last invocation. Requires a spy function to be passed to `expect`. ```ts import { expect, test, vi } from 'vitest' @@ -950,7 +950,7 @@ test('spy function returns a product', () => { - **Type**: `(returnValue: any) => Awaitable` -You can call this assertion to check if a function has successfully returned a value with certain parameters on it's last invoking. Requires a spy function to be passed to `expect`. +You can call this assertion to check if a function has successfully returned a value with certain parameters on its last invoking. Requires a spy function to be passed to `expect`. ```ts import { expect, test, vi } from 'vitest' From ab60bf8dff46c05bc67194c3cc2a5fa753916609 Mon Sep 17 00:00:00 2001 From: Hiroshi Ogawa Date: Tue, 5 Mar 2024 05:02:36 +0900 Subject: [PATCH 02/20] fix(ui): escape html in error diff (#5325) --- packages/ui/client/components/views/ViewReportError.vue | 3 ++- test/ui/fixtures/error.test.ts | 6 ++++++ test/ui/test/html-report.spec.ts | 8 +++++++- test/ui/test/ui.spec.ts | 8 +++++++- test/ui/vitest.config.ts | 3 +++ 5 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 test/ui/fixtures/error.test.ts diff --git a/packages/ui/client/components/views/ViewReportError.vue b/packages/ui/client/components/views/ViewReportError.vue index 9a9bf01d96a6..5a1de0a9fe2c 100644 --- a/packages/ui/client/components/views/ViewReportError.vue +++ b/packages/ui/client/components/views/ViewReportError.vue @@ -1,6 +1,7 @@