Make src/cdk/testing folder classes importable
See original GitHub issueBug, feature request, or proposal:
Make src/cdk/testing folder classes importable
What is the expected behavior?
All classes under src/cdk/testing
should be importable, as in:
import { wrappedErrorMessage } from '@angular/cdk';
What is the current behavior?
Can’t import src/cdk/testing
content
What are the steps to reproduce?
import { wrappedErrorMessage } from '@angular/cdk';
will error out
Providing a Plunker (or similar) is the best way to get the team to see your issue. Plunker template: https://goo.gl/DlHd6U
What is the use-case or motivation for changing an existing behavior?
Build a set of components and their unit tests using @angular/cdk
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
2.0.0-beta.8
Is there anything else we should know?
No
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:6 (5 by maintainers)
Top Results From Across the Web
python - How to import the class within the same directory or ...
Python 2. Make an empty file called __init__.py in the same directory as the files. That will signify to Python that it's "ok...
Read more >Import Classes - MATLAB & Simulink - MathWorks
Import classes into functions to simplify name references. ... For example, suppose that you have the following folder organization:.
Read more >Python Import Class from Another File | FavTutor
In this article, we are going to make you familiar with the process of importing a class from another file in python.
Read more >Absolute vs Relative Imports in Python
An absolute import specifies the resource to be imported using its full path from the project's root folder. Syntax and Practical Examples. Let's...
Read more >importlib — The implementation of import — Python 3.11.1 ...
path_hooks with the current working directory for '' (i.e. the empty string). class importlib.machinery.FileFinder(path ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah, as @DevVersion mentioned, we don’t intend these to be public right now. We would want to be much more deliberate in designing what our testing utilities would look like for consuming developers.
Right now, the testing utilities are intentionally not exposed in the public API.
At some point there was the idea of exposing those utilities to the public using a secondary entry-point (similar as for
@angular/core/testing
)Meaning that developers can import those utilities like that: