diff --git a/.github/workflows/test-pnpm.yml b/.github/workflows/test-pnpm.yml index 8855cd3..58fdc3e 100644 --- a/.github/workflows/test-pnpm.yml +++ b/.github/workflows/test-pnpm.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [18.x, 20.x, 22.x] + node-version: [22.x] os: [ubuntu-latest] steps: - uses: actions/checkout@v4 diff --git a/tests/tests-pnpm/src/example.ts b/tests/tests-pnpm/src/example.ts index fe78e78..7419398 100644 --- a/tests/tests-pnpm/src/example.ts +++ b/tests/tests-pnpm/src/example.ts @@ -3,4 +3,5 @@ import { NestFactory } from "@nestjs/core" export const example = async () => { const test = await NestFactory.create({} as any) console.log(test) + return test } diff --git a/tests/tests-pnpm/test/example.test.ts b/tests/tests-pnpm/test/example.test.ts index e0479b5..a03ee93 100644 --- a/tests/tests-pnpm/test/example.test.ts +++ b/tests/tests-pnpm/test/example.test.ts @@ -16,8 +16,6 @@ describe("Example", async () => { } ) - await example() - - equal(1,1) + equal(await example(), 'mocked') }) })