-
Notifications
You must be signed in to change notification settings - Fork 987
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
Fixed Tests for Turtle Singer and Synth Utils #4437
Conversation
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests:
|
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests:
|
@omsuneri i have removed those po files. The changes that i have done in the root file in |
#4422 (comment)
I also updated the tests to ensure setMasterVolumeand setSynthVolume are called with the correct arguments.
|
@ac-mmi try to mock the last as global.last = jest.fn((array) => array[array.length - 1]); |
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests:
|
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests:
|
@omsuneri Done |
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests:
|
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests:
|
1 similar comment
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests:
|
@omsuneri Alright i will take care of this in future |
@ac-mmi no issues now this looks good !! |
please remove the unnecessary comments, such as // New additon |
What are the .po.tmp files for? |
@walterbender The |
Please make any changes to PO files in a separate PR. Also, the comments in the PO files are there to help the translators. |
@walterbender, I noticed the PR got closed, and I’m not sure why. Could you let me know the reason? I’d like to understand so I can learn from it and improve. If possible, I’d like to continue working on this. Thanks! |
It was closed by accident. Sorry about that. Fat fingers today. |
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests:
|
@walterbender no problem |
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests:
|
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests:
|
❌ Some Jest tests failed. Please check the logs and fix the issues before merging. Failed Tests:
|
This PR fixes issues with the tests for TurtleSinger, SynthUtils, and VolumeActions which i saw in my previous PR. There were some errors popping up due to undefined properties and some inconsistent mocks, so I cleaned that up.
In turtle-singer.test.js, I fixed TypeErrors by properly setting up blockList and connections. I also improved the mocking for Tone.Panner and updated test cases to cover more edge cases. In synthutils.test.js, I resolved issues with mocks causing errors and initialized activity.logo.synth correctly to avoid undefined errors.
In volumeactions.test.js, I fixed undefined connections by setting up blockList as follows:
I ran the
npm test
command, and all the tests passed.