ECMAScript.Pinia.Testing 0.10.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package ECMAScript.Pinia.Testing --version 0.10.0
                    
NuGet\Install-Package ECMAScript.Pinia.Testing -Version 0.10.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.10.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.10.0" />
                    
Directory.Packages.props
<PackageReference Include="ECMAScript.Pinia.Testing" />
                    
Project file
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.10.0
                    
#r "nuget: ECMAScript.Pinia.Testing, 0.10.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.10.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.10.0
                    
Install as a Cake Addin
#tool nuget:?package=ECMAScript.Pinia.Testing&version=0.10.0
                    
Install as a Cake Tool

ECMAScript.Pinia.Testing

定位:独立于 ECMAScript.Pinia 主包的 @pinia/testing 强类型 binding。

该项目承载测试期 Pinia root、spy 与 initial-state 的 authoring contract,避免把测试专用 API 混入生产运行时包。

职责

  • 提供 createTestingPinia() 的 C# host binding。
  • 提供 TestingOptionsTestingInitialStatePiniaTestingSpyFactoryTestingStubActions 契约。
  • 提供 ProjectPlugin(...)ProjectStubActionPredicate(...)ProjectStubActions(...) 等显式类型投影 helper。

边界

  • 不镜像 Vitest、Jest 等测试框架的 spy 类型,只描述 Pinia 自身配置。
  • 泛型 TestingOptions<TDelegate, TStore> 和投影 helper 只增强 C# authoring,不改变 JavaScript runtime options shape。
  • 未覆盖的测试 runner 集成应由调用方提供,不在本包中建立兼容层。

代码结构

  • PiniaTesting.cs:模块入口与委托声明。
  • Api/PiniaTesting.Api.cscreateTestingPinia(...) 与投影入口。
  • Types/PiniaTesting.Types.cs:options、state 与测试期 runtime shape。

相关文档

Product 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.

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.11.0 0 8/11/2026
0.10.0 30 8/11/2026
0.9.0 29 8/11/2026
0.8.3 36 8/11/2026
0.8.2 37 8/11/2026
0.7.0 54 8/10/2026
0.6.0 49 8/10/2026
0.5.0 45 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
0.1.41 99 8/4/2026
0.1.40 100 8/3/2026
Loading failed