ng Verified current stable Not installed? Version Control

Ng / Skip Generating Unit Test Files

Skip Generating Unit Test Files

Use the ng command to create an Angular app without generating unit test files.

$
Terminal
ng n <app_name> -S

When To Use

Creating an Angular app without unnecessary unit test files for streamlined development.

Command Builder

Tune the command before you copy it

Back to syntax
$
Generated Command
ng n <app_name> -S

Terminal Output

Expected runtime feedback

Simulated preview
>
Output
Creating a new Angular application 'app_name'...

✔ Packages installed successfully.

Your application 'app_name' has been created without unit test files.

Command Breakdown

What each part is doing

ng
Base Command
The executable that performs this operation. Here it runs Ng before the shell applies any redirect operators.
n
n|new
The value supplied for n|new.
<app_name>
app name
The value supplied for app name.
-S
S| skip tests
The value supplied for S| skip tests.
-S
Command Option
Tool-specific option used by this command invocation.

How To Run

Execution path

  1. Step 1

    Run the command: ng new app_name --skip-tests

  2. Step 2

    Replace 'app_name' with your desired application name

  3. Step 3

    Verify that no unit test files are generated in the app directory.

Alternative Approaches

Comparable commands in other tools

Alternative version control tools for the same job.