From daf1c29e4c78e72989b00b0d0c7ed15309994655 Mon Sep 17 00:00:00 2001 From: Aleksandr Kiliushin Date: Mon, 29 Jan 2024 22:05:18 +0300 Subject: [PATCH 1/5] Update testing.md --- langs/en/guides/testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langs/en/guides/testing.md b/langs/en/guides/testing.md index 03f3eca5..12ad0846 100644 --- a/langs/en/guides/testing.md +++ b/langs/en/guides/testing.md @@ -83,7 +83,7 @@ You may want to keep parts of your state separate from the components for ease o Also, since effects trigger asynchronously, it can help to wrap our assertions in a final effect. Alternatively, to observe a sequence of effects over multiple changes, it can help to return the necessary tools from `createRoot` and execute them in an async test function (as `createRoot` itself cannot take an `async` function). -As an example, let's test `createLocalStorage` from the [todo example](https://www.solidjs.com/examples/todos): +As an example, let's test `createLocalStore` from the [todo example](https://www.solidjs.com/examples/todos): ```ts import { createEffect } from "solid-js"; From 7c97865eb554a4a463f4c174a87af00d84e377c1 Mon Sep 17 00:00:00 2001 From: Aleksandr Kiliushin Date: Mon, 29 Jan 2024 22:06:25 +0300 Subject: [PATCH 2/5] Update testing.md --- langs/es/guides/testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langs/es/guides/testing.md b/langs/es/guides/testing.md index 1b390da3..55aef272 100644 --- a/langs/es/guides/testing.md +++ b/langs/es/guides/testing.md @@ -83,7 +83,7 @@ Es posible que desee mantener partes de su estado separadas de los componentes p Además, dado que los efectos se activan asincrónicamente, puede ser útil envolver nuestras afirmaciones en un efecto final. Alternativamente, para observar una secuencia de efectos sobre múltiples cambios, puede ayudar retornar las herramientas necesarias desde `createRoot` y ejecutarlas en una función de prueba asíncrona (ya que `createRoot` en sí no puede tomar una función `asíncrona`). -Como ejemplo, probemos `createLocalStorage` del [ejemplo de tareas pendientes](https://www.solidjs.com/examples/todos): +Como ejemplo, probemos `createLocalStore` del [ejemplo de tareas pendientes](https://www.solidjs.com/examples/todos): ```ts import { createEffect } from "solid-js"; From ccc441d5dd30f84c3d2ac6ce9d2cb0051aa70486 Mon Sep 17 00:00:00 2001 From: Aleksandr Kiliushin Date: Mon, 29 Jan 2024 22:10:32 +0300 Subject: [PATCH 3/5] Update testing.md --- langs/ja/guides/testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langs/ja/guides/testing.md b/langs/ja/guides/testing.md index fcb8044d..b94fdb21 100644 --- a/langs/ja/guides/testing.md +++ b/langs/ja/guides/testing.md @@ -83,7 +83,7 @@ HTML 形式のカバレッジレポートが欲しい場合は、`c8` の代わ また、Effect は非同期でトリガーされるので、最終的な Effect にアサーションをラップするのに役立ちます。また、複数の変更に対する一連の Effect を観察するには、`createRoot` から必要なツールを返して、非同期のテスト関数で実行すると便利です(`createRoot` 自体は `async` 関数を受け取ることができないので)。 -例として、[ToDo のサンプル](https://www.solidjs.com/examples/todos)にある `createLocalStorage` をテストしてみましょう: +例として、[ToDo のサンプル](https://www.solidjs.com/examples/todos)にある `createLocalStore` をテストしてみましょう: ```ts import { createEffect } from "solid-js"; From f7268aac95a8a4ad61552cb4f423e3e587af8271 Mon Sep 17 00:00:00 2001 From: Aleksandr Kiliushin Date: Mon, 29 Jan 2024 22:10:56 +0300 Subject: [PATCH 4/5] Update testing.md --- langs/ko-kr/guides/testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langs/ko-kr/guides/testing.md b/langs/ko-kr/guides/testing.md index e1a5c1a9..171a5cad 100644 --- a/langs/ko-kr/guides/testing.md +++ b/langs/ko-kr/guides/testing.md @@ -270,7 +270,7 @@ export default defineConfig({ 또한, 이펙트는 비동기로 트리거되기 때문에, 최종 이펙트에서 어설션을 래핑하는 것이 도움이 됩니다. 또는, 여러 변경 사항에 걸친 일련의 이펙트를 관찰하려면, `createRoot`에서 필요한 도구를 반환하고, 비동기 테스트 함수에서 이를 실행하는 것이 도움이 될 수 있습니다. (이는 `createRoot` 자체는 비동기 함수를 받을 수 없기 때문입니다). -예를 들어, [todo 예제](https://www.solidjs.com/examples/todos)에서 `createLocalStorage` 를 테스트 하려면: +예를 들어, [todo 예제](https://www.solidjs.com/examples/todos)에서 `createLocalStore` 를 테스트 하려면: ```ts import { createEffect } from "solid-js"; From d1b7c6b386a3ec6a6e3f88d253ecdcc40e58ed8f Mon Sep 17 00:00:00 2001 From: Aleksandr Kiliushin Date: Mon, 29 Jan 2024 22:11:21 +0300 Subject: [PATCH 5/5] Update testing.md --- langs/zh-cn/guides/testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langs/zh-cn/guides/testing.md b/langs/zh-cn/guides/testing.md index 96d7e278..ef2f8322 100644 --- a/langs/zh-cn/guides/testing.md +++ b/langs/zh-cn/guides/testing.md @@ -83,7 +83,7 @@ $ npm install # or pnpm install or yarn install 此外,由于 effect 是异步触发的,它可以帮助将我们的断言包装在最终 effect 中。或者,要观察多个更改的一系列 effect,它可以帮助从 `createRoot` 返回必要的工具并在异步测试函数中执行它们(因为`createRoot`本身不能接受`async`函数)。 -作为示例,让我们测试 [todo 示例](https://www.solidjs.com/examples/todos) 中的 `createLocalStorage`: +作为示例,让我们测试 [todo 示例](https://www.solidjs.com/examples/todos) 中的 `createLocalStore`: ```ts import { createEffect } from "solid-js";