-
Notifications
You must be signed in to change notification settings - Fork 102
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
Swap some test cases to vitest #2462
Swap some test cases to vitest #2462
Conversation
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
👋 A new build is available for this PR based on 19a2673. |
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
Refactor and reorganize code structure
@sebjulliand are you able to help determine why this test is failing?
|
Co-authored-by: Sanjula Ganepola <32170854+SanjulaGanepola@users.noreply.github.com>
@SanjulaGanepola that did it! Thanks! The last issue needs to be fixed by swapping out the system we're testing on. The current system doesn't have git, which we reference in our test cases. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything passes on my end. Just left some minor comments
src/api/tests/testConfigSetup.ts
Outdated
export class JsonStorage extends BaseStorage { | ||
protected readonly globalState: Map<string, any> = new Map<string, any>(); | ||
|
||
constructor() { | ||
super(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BaseStorage
expects 1 argument now due to the change we made in the other PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good spot. Cheers!
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
Signed-off-by: worksofliam <mrliamallan@live.co.uk>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@SanjulaGanepola Thanks mate!! I think we need to wait until we get a system that can run the tests without fail. I have asked Jesse to get |
@SanjulaGanepola I managed to get it installed! So, I say, let's go ahead and merge. Thanks for everything! |
Start to replace UI testing framework with vitest.
vscode
namespace with vitest test casesHow to test locally:
npm i
to fetch the new depssrc/api/.env.sample
named.env
and enter details of the system for the tests to run onnpm run test