ArkProjectNFTs / ark-market

Clean and simple ArkProject marketplace starter repo using the T3 Stack & Turbo repo
https://market.arkproject.dev
MIT License
7 stars 4 forks source link

feat: add tests #164

Open gershon opened 3 days ago

gershon commented 3 days ago

Describe the feature you'd like to request

We should add some tests.

Describe the solution you'd like to see

Setup test tooling for react / unit tests using vitest, and write some/few tests (coverage target will be defined later).

Additional information

No response

ShantelPeters commented 2 days ago

Please can i be assigned to this issue @gershon

JoE11-y commented 2 days ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

With over four years in blockchain and backend development, I’ve worked across different ecosystems, handling everything from smart contract design to on-chain interactions and protocol integration. I focus on building secure, scalable, and reliable blockchain applications, managing both on-chain and off-chain infrastructure.

How I plan on tackling this issue

Study the codebase, and implement tests to ensure close to 100% coverage

lauchaves commented 2 days ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

Hi! I'm Lau Chaves, and I would like to contribute to this issue!

I have over 5 years of experience working with JavaScript, React, TypeScript, and Ruby. I'm also part of Dojo Coding Costa Rica!

I have knowledge of testing React components and logic using Jest, and I believe implementing Vitest should be pretty similar, so I'm confident I can handle that.

Feel free to check my onlydust profile here and github profile: lauchaves!

How I plan on tackling this issue

I'd follow this approach:

coxmars commented 2 days ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

I'm a software developer with 2+ years of experience and I have worked with backend technologies such as Cairo, Java, C# and frontend with React, NextJS, JS/TS. Also, I'm a member of the Dojo Coding community here in CR and I have made contributions in Cairo VM Go, Cairo VM TS, Cairo Lints etc.

How I plan on tackling this issue

1- I’ll first review the code to identify all the functions that require unit tests. 2- I’ll set up vitest for unit testing, ensuring it integrates smoothly with the existing project. 3- I’ll write tests for all identified functions, covering both typical use cases and edge cases to ensure comprehensive coverage. 4- Finally, I’ll run and validate the tests to confirm that they work as expected and provide useful feedback on potential issues.

No-bodyq commented 2 days ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

I am a computer science student, fullstack and web3 dev. I have contributed to a couple of open source projects in the past via only dust

How I plan on tackling this issue

I'll begin by analyzing the code to pinpoint all functions that need unit tests. Then I'll configure Vitest for unit testing, making sure it integrates seamlessly with the existing project setup. After that I'll create tests for each identified function, covering standard scenarios as well as edge cases to ensure thorough test coverage. Lastly, I'll execute the tests and validate their results to ensure they function correctly and offer meaningful insights into any potential issues.

martinvibes commented 2 days ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

hello i am a frontend dev and smart contract developer please can i work on this issue :) and would love to be a contributor

How I plan on tackling this issue

i have writing tests in solidity and cairo please kindly assign

abdegenius commented 2 days ago

I am applying to this issue via OnlyDust platform.

My background and how it can be leveraged

I am a skilled fullstack developer with a wealth of experience in both frontend and backend JavaScript as well as my knowledge of Rustlang, With a solid foundation in testing,I have mastered frameworks like Mocha, Chai, and Jest to ensure robust, reliable code in every project. In addition to traditional web development, I have a strong background in blockchain technology, with hands-on experience in Solidity for Ethereum-based smart contracts. Moreover, I have delved into the emerging world of StarkNet, working with Cairo, a cutting-edge language tailored for STARKs, making them a versatile developer capable of bridging both traditional and decentralized web applications.

How I plan on tackling this issue

Will install vitest as a test library, setup the tests and write necessary test cases as well as update package.json with the appropriate test commands

kwiss commented 1 day ago

please proceed with it @coxmars