Skip to content
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

Video 10586 synk pr #733

Merged
merged 18 commits into from
Jul 22, 2022
Merged

Video 10586 synk pr #733

merged 18 commits into from
Jul 22, 2022

Conversation

olipyskoty
Copy link
Contributor

Contributing to Twilio

All third party contributors acknowledge that any contributions they provide will be made under the same open source license that the open source project is provided under.

  • I acknowledge that all my contributions will be made under the project's license.

Pull Request Details

JIRA link(s):

Description

This PR updates the following dependencies to the versions listed below:

  • react-scripts: 5.0.0
  • @types/jest: ^27.5.2
  • ts-jest: ^27.0.1
  • firebase: ^9.9.0

Note that there were additional jest configurations needed in order to test code associated with the SwiperJs library. Please see this solution for more information.

Burndown

Before review

  • Updated CHANGELOG.md if necessary
  • Added unit tests if necessary
  • Updated affected documentation
  • Verified locally with npm test
  • Manually sanity tested running locally
  • Included screenshot as PR comment (if needed)
  • Ready for review

Before merge

  • Got one or more +1s
  • Re-tested if necessary

@@ -25,7 +24,7 @@ function AboutDialog({ open, onClose }: PropsWithChildren<AboutDialogProps>) {
<DialogContent>
<DialogContentText>Browser supported: {String(Video.isSupported)}</DialogContentText>
<DialogContentText>SDK Version: {Video.version}</DialogContentText>
<DialogContentText>App Version: {appVersion}</DialogContentText>
<DialogContentText>App Version: {process.env.REACT_APP_VERSION}</DialogContentText>
Copy link
Contributor

Choose a reason for hiding this comment

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

Here I wonder what we should have when we run npm start?
Right now it just looks like App Version: with nothing after it. Should we remove it altogether? Or say "See package.json"? Or should we populate REACT_APP_VERSION when we run npm start? What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added it to npm start. I thought about it and figured it is an easy way to check the app version so why not. It was also an easy addition 😄 . On the other hand, I suppose getting rid of it altogether isn't a bad idea either..

jest.config.js Outdated
@@ -13,5 +16,9 @@ module.exports = {
coveragePathIgnorePatterns: ['node_modules', 'src/icons'],
moduleNameMapper: {
'.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$': '<rootDir>/src/__mocks__/fileMock.ts',
"swiper/react": "<rootDir>/node_modules/swiper/react/swiper-react.js",
"swiper/css": "<rootDir>/node_modules/swiper/swiper.min.css",
"swiper/css/bundle": "<rootDir>/node_modules/swiper/swiper-bundle.min.css",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"swiper/css/bundle": "<rootDir>/node_modules/swiper/swiper-bundle.min.css",

Don't think this one is needed.

@@ -40,6 +40,7 @@ class Filter extends Transform {

// Colors normally don't work when using spawn(), so here we re-enable colors.
process.env.FORCE_COLOR = require('supports-color').stdout.level;
process.env.REACT_APP_VERSION = require(__dirname + "/../package.json").version
Copy link
Contributor

Choose a reason for hiding this comment

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

Github won't let me comment on this, but up on line 20, the URL needs to be updated to:

  https://cra.link/deployment

Comment on lines 218 to 228
class="makeStyles-filename-12"
>
test1.txt
</p>
<p
class="makeStyles-size-13"
>
120.56 KB
- Click to open
</p>
</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

Where did this message go? Should it still be there? I think MessageList.test needs to be updated to handle the new media type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants