Skip to content

Possible incorrect filename index.spec.ts #1

@rohanrajpal

Description

@rohanrajpal

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.
    1.1 The issue is related to Using static property from a class in decorators on the same class swc-project/swc#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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions