Skip to content

tests: remove unsupported TS integration tests #20359

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 20, 2020
Merged

tests: remove unsupported TS integration tests #20359

merged 4 commits into from
Aug 20, 2020

Conversation

alan-agius4
Copy link
Contributor

@alan-agius4 alan-agius4 commented Aug 19, 2020

build: point to typescript node_modules folder instead of .bin

Since we are installing multiple TS versions

components/package.json

Lines 170 to 173 in 1f6b90c

"typescript": "3.9.5",
"typescript-3.6": "npm:typescript@~3.6.4",
"typescript-3.7": "npm:typescript@~3.7.0",
"typescript-3.8": "npm:typescript@~3.8.0",
yarn will link the last tsc binary which may not be the TSC version we want to use to build/test this reproduction.

Currently with the following package.json packages

"typescript": "3.9.5",
"typescript-3.6": "npm:typescript@~3.6.4",
"typescript-3.7": "npm:typescript@~3.7.0",
"typescript-3.8": "npm:typescript@~3.8.0",

If we run npx tsc --v the output will be Version 3.8.3 as opposed to 3.9.5

build: update tests to use UMD module format

The current version of system.js used doesn't seem to handle the exports correctly for TypeScript 3.9 output and causes Cannot find variable: exports during runtime.

With this change we change the tests module to use UMD.

build: update to TypeScript 3.9.7

test: remove unsupported TS integration tests

With this change we remove TS integration tests for unsupported TS versions.
Angular version 10 doesn't TS versions older than TS 3.9.

@alan-agius4 alan-agius4 requested review from devversion, jelbourn and a team as code owners August 19, 2020 09:27
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Aug 19, 2020
@alan-agius4 alan-agius4 deleted the remove-old-tests branch August 19, 2020 10:44
@alan-agius4 alan-agius4 restored the remove-old-tests branch August 19, 2020 10:47
@alan-agius4 alan-agius4 reopened this Aug 19, 2020
@alan-agius4 alan-agius4 requested a review from mmalerba as a code owner August 19, 2020 12:01
Copy link
Member

@devversion devversion left a comment

Choose a reason for hiding this comment

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

LGTM!

@devversion devversion added action: merge The PR is ready for merge by the caretaker merge safe P2 The issue is important to a large percentage of users, with a workaround merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note labels Aug 19, 2020
@devversion
Copy link
Member

Note: CI is failing due to failures in master that will be fixed with #20357

@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label Aug 19, 2020
With this change we remove TS integration tests for unsupported TS versions.
Angular version 10 doesn't TS versions older than TS 3.9.
The current version of system.js used doesn't seem to handle the `exports` correctly for TypeScript 3.9 output and causes `Cannot find variable: exports` during runtime.

With this change we change the tests module to use UMD.
Since we are installing multiple TS versions https://github.com/angular/components/blob/1f6b90c0a515397526d7c6b35f047827bfaa8652/package.json#L170-L173 yarn will link the last tsc binary which may not be the TSC version we want to use to build/test this reproduction.

Currently with the following package.json packages
```
    "typescript": "3.9.5",
    "typescript-3.6": "npm:typescript@~3.6.4",
    "typescript-3.7": "npm:typescript@~3.7.0",
    "typescript-3.8": "npm:typescript@~3.8.0",
```

If we run `npx tsc --v` the output will be `Version 3.8.3` as opposed to `3.9.5`
@wagnermaciel wagnermaciel merged commit bbf75f3 into angular:master Aug 20, 2020
wagnermaciel pushed a commit that referenced this pull request Aug 20, 2020
* test: remove unsupported TS integration tests

With this change we remove TS integration tests for unsupported TS versions.
Angular version 10 doesn't TS versions older than TS 3.9.

* build: update to TypeScript 3.9.7

* build: update tests to use UMD module format

The current version of system.js used doesn't seem to handle the `exports` correctly for TypeScript 3.9 output and causes `Cannot find variable: exports` during runtime.

With this change we change the tests module to use UMD.

* build: point to typescript node_modules folder instead of `.bin`

Since we are installing multiple TS versions https://github.com/angular/components/blob/1f6b90c0a515397526d7c6b35f047827bfaa8652/package.json#L170-L173 yarn will link the last tsc binary which may not be the TSC version we want to use to build/test this reproduction.

Currently with the following package.json packages
```
    "typescript": "3.9.5",
    "typescript-3.6": "npm:typescript@~3.6.4",
    "typescript-3.7": "npm:typescript@~3.7.0",
    "typescript-3.8": "npm:typescript@~3.8.0",
```

If we run `npx tsc --v` the output will be `Version 3.8.3` as opposed to `3.9.5`

(cherry picked from commit bbf75f3)
@alan-agius4 alan-agius4 deleted the remove-old-tests branch August 20, 2020 18:53
@angular-automatic-lock-bot
Copy link

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 angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 20, 2020
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 merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note 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.

4 participants