question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make src/cdk/testing folder classes importable

See original GitHub issue

Bug, 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:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
jelbourncommented, Aug 17, 2017

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.

2reactions
devversioncommented, Jul 17, 2017

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:

import {XX} from '@angular/cdk/testing';
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found