FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(material/core): test environment check not picking up jest by crisbeto · Pull Request #23722 · angular/components · GitHub

fix(material/core): test environment check not picking up jest - #23722

Merged
amysorto merged 1 commit into
angular:masterfrom
crisbeto:23365/test-env-check-yet-again
Nov 8, 2021
Merged

fix(material/core): test environment check not picking up jest#23722
amysorto merged 1 commit into
angular:masterfrom
crisbeto:23365/test-env-check-yet-again

Conversation

crisbeto commented Oct 10, 2021
edited
Loading

Copy link
Copy Markdown
Member

In #23636 the test environment check was changed so that it looks for the test objects either on window or global, however it looks like this isn't enough to pick up Jest which isn't published on either.

These changes simplify the setup by looking up the value globally and disabling the type checking error with @ts-ignore. We can't use declare const for it, because it causes issues in g3.

I've also reverted some of the any types that had to be added in #23636.

Fixes #23365.

google-cla Bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Oct 10, 2021
crisbeto force-pushed the 23365/test-env-check-yet-again branch from 3f767f1 to 35fd965 Compare October 10, 2021 10:02
crisbeto marked this pull request as ready for review October 10, 2021 10:10
crisbeto requested a review from a team October 10, 2021 10:10
crisbeto added P2 The issue is important to a large percentage of users, with a workaround target: patch This PR is targeted for the next patch release labels Oct 10, 2021

devversion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

👍 hopefully that works. soo much nicer!

crisbeto added the action: merge The PR is ready for merge by the caretaker label Oct 11, 2021

jelbourn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

Copy link
Copy Markdown
Contributor

@crisbeto This needs to be rebased

crisbeto force-pushed the 23365/test-env-check-yet-again branch from 35fd965 to cdd9415 Compare October 25, 2021 07:07

Copy link
Copy Markdown
Member Author

Rebased.

In angular#23636 the test environment check was changed so that it looks for the test objects either on `window` or `global`, however it looks like this isn't enough to pick up Jest which isn't published on either.

These changes simplify the setup by looking up the value globally and disabling the type checkng error with `@ts-ignore`. We can't use `declare const` for it, because it causes issues in g3.

I've also reverted some of the `any` types that had to be added in angular#23636.

Fixes angular#23365.
crisbeto force-pushed the 23365/test-env-check-yet-again branch from cdd9415 to fbe1d24 Compare November 3, 2021 07:51

Copy link
Copy Markdown

are we going to get this in a patch release on 12 or will it only be in 13? It continues to litter our testing logs and we won't be able to go to 13 for at least a couple months

jelbourn commented Nov 3, 2021

Copy link
Copy Markdown
Contributor

We'll try to do one last 12.2.x release for this fix after v13

amysorto merged commit ff7fd48 into angular:master Nov 8, 2021
amysorto pushed a commit that referenced this pull request Nov 8, 2021
In #23636 the test environment check was changed so that it looks for the test objects either on `window` or `global`, however it looks like this isn't enough to pick up Jest which isn't published on either.

These changes simplify the setup by looking up the value globally and disabling the type checkng error with `@ts-ignore`. We can't use `declare const` for it, because it causes issues in g3.

I've also reverted some of the `any` types that had to be added in #23636.

Fixes #23365.

(cherry picked from commit ff7fd48)
crisbeto added a commit to crisbeto/material2 that referenced this pull request Nov 8, 2021
…ar#23722)

In angular#23636 the test environment check was changed so that it looks for the test objects either on `window` or `global`, however it looks like this isn't enough to pick up Jest which isn't published on either.

These changes simplify the setup by looking up the value globally and disabling the type checkng error with `@ts-ignore`. We can't use `declare const` for it, because it causes issues in g3.

I've also reverted some of the `any` types that had to be added in angular#23636.

Fixes angular#23365.
crisbeto added a commit to crisbeto/material2 that referenced this pull request Nov 8, 2021
…ar#23722)

In angular#23636 the test environment check was changed so that it looks for the test objects either on `window` or `global`, however it looks like this isn't enough to pick up Jest which isn't published on either.

These changes simplify the setup by looking up the value globally and disabling the type checkng error with `@ts-ignore`. We can't use `declare const` for it, because it causes issues in g3.

I've also reverted some of the `any` types that had to be added in angular#23636.

Fixes angular#23365.
amysorto pushed a commit that referenced this pull request Nov 9, 2021
… (#23924)

In #23636 the test environment check was changed so that it looks for the test objects either on `window` or `global`, however it looks like this isn't enough to pick up Jest which isn't published on either.

These changes simplify the setup by looking up the value globally and disabling the type checkng error with `@ts-ignore`. We can't use `declare const` for it, because it causes issues in g3.

I've also reverted some of the `any` types that had to be added in #23636.

Fixes #23365.

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

angular-automatic-lock-bot Bot locked and limited conversation to collaborators Dec 9, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P2 The issue is important to a large percentage of users, with a workaround target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Sanity checks run in test environement

6 participants


Back | FazBrowse Home | New Git URL