ECMAScript.Pinia.Testing
0.15.0
dotnet add package ECMAScript.Pinia.Testing --version 0.15.0
NuGet\Install-Package ECMAScript.Pinia.Testing -Version 0.15.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ECMAScript.Pinia.Testing" Version="0.15.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ECMAScript.Pinia.Testing" Version="0.15.0" />
<PackageReference Include="ECMAScript.Pinia.Testing" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ECMAScript.Pinia.Testing --version 0.15.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ECMAScript.Pinia.Testing, 0.15.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ECMAScript.Pinia.Testing@0.15.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ECMAScript.Pinia.Testing&version=0.15.0
#tool nuget:?package=ECMAScript.Pinia.Testing&version=0.15.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ECMAScript.Pinia.Testing
定位:独立于
ECMAScript.Pinia主包的@pinia/testing强类型 binding。
该项目承载测试期 Pinia root、spy 与 initial-state 的 authoring contract,避免把测试专用 API 混入生产运行时包。
职责
- 提供
createTestingPinia()的 C# host binding。 - 提供
TestingOptions、TestingInitialState、PiniaTestingSpyFactory与TestingStubActions契约。 - 提供
ProjectPlugin(...)、ProjectStubActionPredicate(...)与ProjectStubActions(...)等显式类型投影 helper。 @pinia/testing2 已将 writable-computed plugin 设为内部固定行为,TestingOptions不再公开已移除的WritableComputed选项。
边界
- 不镜像 Vitest、Jest 等测试框架的 spy 类型,只描述 Pinia 自身配置。
- 泛型
TestingOptions<TDelegate, TStore>和投影 helper 只增强 C# authoring,不改变 JavaScript runtime options shape。 - 未覆盖的测试 runner 集成应由调用方提供,不在本包中建立兼容层。
代码结构
PiniaTesting.cs:模块入口与委托声明。Api/PiniaTesting.Api.cs:createTestingPinia(...)与投影入口。Types/PiniaTesting.Types.cs:options、state 与测试期 runtime shape。
相关文档
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net11.0
- ECMAScript.Pinia (>= 0.15.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.15.0 | 0 | 8/15/2026 |
| 0.14.0 | 61 | 8/14/2026 |
| 0.13.0 | 72 | 8/12/2026 |
| 0.12.0 | 69 | 8/12/2026 |
| 0.11.0 | 76 | 8/11/2026 |
| 0.10.0 | 73 | 8/11/2026 |
| 0.9.0 | 66 | 8/11/2026 |
| 0.8.3 | 76 | 8/11/2026 |
| 0.8.2 | 72 | 8/11/2026 |
| 0.7.0 | 88 | 8/10/2026 |
| 0.6.0 | 83 | 8/10/2026 |
| 0.5.0 | 79 | 8/9/2026 |
| 0.4.0 | 82 | 8/9/2026 |
| 0.3.4 | 85 | 8/9/2026 |
| 0.3.3 | 81 | 8/7/2026 |
| 0.3.2 | 96 | 8/6/2026 |
| 0.1.48 | 106 | 8/5/2026 |
| 0.1.47 | 97 | 8/5/2026 |
| 0.1.46 | 95 | 8/5/2026 |
| 0.1.45 | 97 | 8/5/2026 |
Loading failed