Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using 'application' generator in a directory that doesn't has the 'test' folder #1492

Closed
2 of 4 tasks
micalevisk opened this issue Jul 22, 2023 · 1 comment · Fixed by #1493
Closed
2 of 4 tasks
Labels
bug Something isn't working needs triage

Comments

@micalevisk
Copy link
Member

micalevisk commented Jul 22, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

you'll se following error when running nest g app foo in a dir that does not has the 'test' folder:

Error: Path "/test" does not exist.

Failed to execute command: node @nestjs/schematics:sub-app --name=foo --no-dry-run --no-skip-import --language="ts" --source-root="src" --spec --no-flat --spec-file-suffix="spec"

Minimum reproduction code

see below

Steps to reproduce

git clone git@github.com:nestjs/typescript-starter.git
cd typescript-starter
npm install @nestjs/cli@10.1.10
rm -rf test
npx nest g app foo

Expected behavior

I think that the CLI shouldn't assume that every project will have a 'test' folder in their nestjs projects, so that command should went fine as when we have such folder

Package version

10.0.1

NestJS version

No response

Node.js version

No response

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

@micalevisk micalevisk added bug Something isn't working needs triage labels Jul 22, 2023
@micalevisk micalevisk changed the title Erro when using 'application' generator in a directory that doesn't has the 'test' folder Error when using 'application' generator in a directory that doesn't has the 'test' folder Jul 22, 2023
@kamilmysliwiec
Copy link
Member

Let's track this here #1493

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants