todos,而不是 app。
Fixture
@quiesco/vitest 的 test 是带有 app fixture 的 Vitest test。用 driver 扩展它:
todos 用到了 app,所以请求 todos 的测试和请求 app 的测试一样,运行前都会重置 App。
测试
从 fixtures 文件导入test 和 expect,而不是从 @quiesco/vitest:
todos 之外再请求 app。
关于 Vitest 的更多内容见 Vitest。