Skip to content

Skip tests in AoT compilation process #3216

@Serginho

Description

@Serginho

OS?

Ubuntu 16.04

Versions.

angular-cli: 1.0.0-beta.19-3
node: 4.6.0
os: linux x64

Repro steps.

Was this an app that wasn't created using the CLI? Yes

The log given by the failure.

›  $ ng build --prod --environment=dev --aot                  
                                                                                                  
  0% compiling
Cannot determine the module for class TestComponent in .../switch.component.spec.ts!
Cannot determine the module for class Test2Component in .../switch.component.spec.ts!
Cannot determine the module for class Test3Component in .../switch.component.spec.ts!

Mention any other details that might be useful.

I think it would be great to skip testing with AoT because Angular AoT compiler doesn't detect the test host components module. This class declaration is only configured in TestBed. For this reason AoT causes this exception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions