---
title: "Taranjeet Singh (@taranjeet) | Hashnode"
description: "Building Embedchain.ai. Read the latest articles by Taranjeet Singh on Hashnode."
url: "https://hashnode.com/@taranjeet"
---

@taranjeet

# Taranjeet Singh

@taranjeet · Joined September 2018

Building Embedchain.ai

## Comments

[Thank you :)](https://hashnode.com/posts/how-to-build-your-own-openai-cost-calculator/64759186846e3bd54829f2b3/comment/6475deb6deb8b4bf8d801c2e#reply-64760c2bbdd34abc7cb100ab)

Reply · Article · May 30, 2023 · [How to build your own OpenAI cost calculator](https://hashnode.com/posts/how-to-build-your-own-openai-cost-calculator/64759186846e3bd54829f2b3)

[In my case, I passed match as props import \* as renderer from 'react-test-renderer'; const renderWithProps = (props) => { const defaultProps = { match: { params: { code: 123 } }, }; return renderer.create(< ListPage {...defaultProps} {...minProps} />); } test('should render', () => { renderWithProps({}); expect(wrapper.toJSON()).toMatchSnapshot(); }) renderWithProps write now uses ListPage as a component. You can take that as parameter.](https://hashnode.com/forums/thread/how-to-test-dynamic-router-in-reactrouter-with-jest/comment/5b953fd2c4ad746e2289d93c)

Comment · Thread · Sep 9, 2018 · [How to test dynamic router in ReactRouter with jest?](https://hashnode.com/forums/thread/how-to-test-dynamic-router-in-reactrouter-with-jest)
