Skip to content

Commit

Permalink
update pnpm test to assert return value
Browse files Browse the repository at this point in the history
  • Loading branch information
bumblehead committed Oct 18, 2024
1 parent 37cc63f commit d12b3bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-pnpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/tests-pnpm/src/example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
4 changes: 1 addition & 3 deletions tests/tests-pnpm/test/example.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ describe("Example", async () => {
}
)

await example()

equal(1,1)
equal(await example(), 'mocked')
})
})

0 comments on commit d12b3bb

Please sign in to comment.