ECMAScript.Pinia.Testing
0.12.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package ECMAScript.Pinia.Testing --version 0.12.0
NuGet\Install-Package ECMAScript.Pinia.Testing -Version 0.12.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.12.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.12.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.12.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ECMAScript.Pinia.Testing, 0.12.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.12.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.12.0
#tool nuget:?package=ECMAScript.Pinia.Testing&version=0.12.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。
边界
- 不镜像 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.12.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.13.0 | 0 | 8/12/2026 |
| 0.12.0 | 0 | 8/12/2026 |
| 0.11.0 | 37 | 8/11/2026 |
| 0.10.0 | 37 | 8/11/2026 |
| 0.9.0 | 33 | 8/11/2026 |
| 0.8.3 | 42 | 8/11/2026 |
| 0.8.2 | 38 | 8/11/2026 |
| 0.7.0 | 55 | 8/10/2026 |
| 0.6.0 | 50 | 8/10/2026 |
| 0.5.0 | 46 | 8/9/2026 |
| 0.4.0 | 50 | 8/9/2026 |
| 0.3.4 | 53 | 8/9/2026 |
| 0.3.3 | 59 | 8/7/2026 |
| 0.3.2 | 84 | 8/6/2026 |
| 0.1.48 | 99 | 8/5/2026 |
| 0.1.47 | 92 | 8/5/2026 |
| 0.1.46 | 89 | 8/5/2026 |
| 0.1.45 | 90 | 8/5/2026 |
| 0.1.43 | 93 | 8/4/2026 |
| 0.1.42 | 96 | 8/4/2026 |
Loading failed