jmcdo29 / jmcdo29/nest-e2e-sample

Possible incorrect filename `index.spec.ts`

Open
#1 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
29
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Hey Jay, thanks a ton for this repository. I've learned a lot of new things through this.

When I run `pnpm test:e2e`

```
❯ pnpm test:e2e (base)

> nest-e2e-sample@0.0.1 test:e2e /Users/rohanrajpal/Documents/experiments/nest-e2e-sample
> uvu -r @swc/register test \.e2e-spec\.ts$

Total: 0
Passed: 0
Skipped: 0
Duration: 0.44ms
```

But if I rename `index.spec.ts` to `index.e2e-spec.ts` then all tests work fine and run as expected. I guess its a typo in the filename?

I had a few more doubts, it'd be great if an expert like you can help me out with them!

1. This setup fails if I have a dependency injection & [seems like the issue is yet to be fixed](https://github.com/swc-project/jest/issues/4#issuecomment-1030982259).
1.1 The issue is related to https://github.com/swc-project/swc/issues/3521
1.2 Were you able to find a workaround to this?
2. My project has absolute imports like `src/prisma` & uvu returns file not found for that. I've read the uvu docs and looks like the only way around to specify two folders in the `dir` argument like `src|test` probably?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.