From 31ea069452a126b1639a769898dcccf1b6439a0a Mon Sep 17 00:00:00 2001 From: Naily Date: Fri, 1 Nov 2024 17:39:51 +0800 Subject: [PATCH] ci: test --- .github/workflows/test.yml | 8 -------- packages/ioc/test/index.test.ts | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 44ca512..20e3e2a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,11 +41,3 @@ jobs: - name: Run tests run: | pnpm run test - - # (Optional) Step 6: Upload test results if needed - - name: Upload test results - if: always() - uses: actions/upload-artifact@v3 - with: - name: test-results - path: ./packages/**/test-results.xml diff --git a/packages/ioc/test/index.test.ts b/packages/ioc/test/index.test.ts index 289a74b..2672caf 100644 --- a/packages/ioc/test/index.test.ts +++ b/packages/ioc/test/index.test.ts @@ -60,7 +60,7 @@ it('should automatic analyze deps', () => { expect(constructorDeps[0]).toBeInstanceOf(ClassWrapper) expect(constructorDeps[1]).toBeInstanceOf(ClassWrapper) expect(constructorDeps[2]).toBeUndefined() - expect(constructorDeps[3]).toBeInstanceOf(ClassWrapper) + expect(constructorDeps[3]).toBeInstanceOf(Container) const instance: FooService = classFactory.getOrCreateInstance() expect(instance).toBeInstanceOf(FooService)